[vlc-devel] [PATCH 2/2] access: file: assume FUSE is remote

Thomas Guillem thomas at gllm.fr
Tue Apr 16 13:30:40 CEST 2019


---
 modules/access/file.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/access/file.c b/modules/access/file.c
index 58bd0d7b41..9a4699d853 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -95,6 +95,10 @@ static bool IsRemote (int fd)
         case NFS_SUPER_MAGIC:
         case SMB_SUPER_MAGIC:
         case 0xFF534D42 /*CIFS_MAGIC_NUMBER*/:
+        /* Let's roll the dice and assume than most FUSE FS will be remote.
+         * It's better to assume the worst (remote) and trigger VLC remote
+         * tweaks. */
+        case 0x65735546 /*FUSE_SUPER_MAGIC*/:
             return true;
     }
     return false;
-- 
2.20.1



More information about the vlc-devel mailing list