mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02: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)
|
static bool check_stream_network(int fd)
|
||||||
{
|
{
|
||||||
struct statfs fs;
|
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)
|
if (fstatfs(fd, &fs) == 0)
|
||||||
for (int i=0; stypes[i]; i++)
|
for (int i=0; stypes[i]; i++)
|
||||||
if (strcmp(stypes[i], fs.f_fstypename) == 0)
|
if (strcmp(stypes[i], fs.f_fstypename) == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user