From bc84d7da7b151bedcc9b9d95117d1e2dadbc4a2e Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Thu, 6 Sep 2018 19:04:25 -0300 Subject: fileio: don't try to mount if remote update is disabled The current logic tries to do a remote mount even when remote mount is not used. Signed-off-by: Mauro Carvalho Chehab --- src/fileio.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.1