aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-06 22:04:25 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-06 22:10:43 (GMT)
commitbc84d7da7b151bedcc9b9d95117d1e2dadbc4a2e (patch)
tree20dc0110c5ac0d29acdd039f53f9de6d5892193d
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>
-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