stream_file: enable cache for FUSE filesystems on OS X

Requested in #634. Better late than never?
This commit is contained in:
Philip Sequeira 2018-03-15 01:59:45 -04:00 committed by Kevin Mitchell
parent b99da1c0a5
commit bd0a636d8b
1 changed files with 2 additions and 1 deletions

View File

@ -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)