path: root/src/fileio.c
diff options
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-06 19:04:25 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-06 19:10:43 -0300
commitbc84d7da7b151bedcc9b9d95117d1e2dadbc4a2e (patch)
tree20dc0110c5ac0d29acdd039f53f9de6d5892193d /src/fileio.c
parent2502035e68b51ce09b0490f0ff26706b8c34bdac (diff)
fileio: don't try to mount if remote update is disabledfixes
The current logic tries to do a remote mount even when remote mount is not used. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/fileio.c')
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