Skip to content

Commit

Permalink
stream_file: enable cache for FUSE filesystems on OS X
Browse files Browse the repository at this point in the history
Requested in mpv-player#634. Better late than never?
  • Loading branch information
qmega committed Mar 15, 2018
1 parent 48c5c26 commit 5cadf3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stream/stream_file.c
Expand Up @@ -192,7 +192,8 @@ char *mp_file_get_path(void *talloc_ctx, bstr url)
static bool check_stream_network(int fd)
{
struct statfs fs;
const char *stypes[] = { "afpfs", "nfs", "smbfs", "webdav", NULL };
const char *stypes[] = { "afpfs", "nfs", "smbfs", "webdav", "osxfusefs",
NULL };
if (fstatfs(fd, &fs) == 0)
for (int i=0; stypes[i]; i++)
if (strcmp(stypes[i], fs.f_fstypename) == 0)
Expand Down

0 comments on commit 5cadf3a

Please sign in to comment.