mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00:00
stream_file: enable cache for FUSE filesystems on OS X
Requested in #634. Better late than never?
This commit is contained in:
parent
b99da1c0a5
commit
bd0a636d8b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user