mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 19:52:14 +00:00
stream_file: add new identifier for macOS FUSE filesystems
the new identifier for osxfusefs is macfuse, but we will keep both since the older releases are still used.
This commit is contained in:
parent
ef0aafbd42
commit
01482c63ca
@ -176,7 +176,7 @@ static bool check_stream_network(int fd)
|
|||||||
{
|
{
|
||||||
struct statfs fs;
|
struct statfs fs;
|
||||||
const char *stypes[] = { "afpfs", "nfs", "smbfs", "webdav", "osxfusefs",
|
const char *stypes[] = { "afpfs", "nfs", "smbfs", "webdav", "osxfusefs",
|
||||||
"fuse", "fusefs.sshfs", NULL };
|
"fuse", "fusefs.sshfs", "macfuse", 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