aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-06 19:12:00 -0300
committerGitHub <noreply@github.com>2018-09-06 19:12:00 -0300
commit11bfe32defca41bf991f1a427767541fb380c0b9 (patch)
tree20dc0110c5ac0d29acdd039f53f9de6d5892193d
parent2502035e68b51ce09b0490f0ff26706b8c34bdac (diff)
parentbc84d7da7b151bedcc9b9d95117d1e2dadbc4a2e (diff)
Merge pull request #22 from mchehab/fixes
fileio: don't try to mount if remote update is disabled
-rw-r--r--src/fileio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 7eb0518..b587c18 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -197,6 +197,10 @@ void umount_volume(cam_t *cam)
void mount_volume(cam_t *cam)
{
+ /* Only try to mount if remote capture is enabled */
+ if (!cam->rcap)
+ return;
+
/* Prepare a mount operation */
cam->rdir_file = g_file_new_for_uri(cam->uri);
if (cam->rdir_file)

Privacy Policy