mirror of https://github.com/mpv-player/mpv
stream_file: enable cache for FUSE filesystems on OpenBSD and FreeBSD
This commit is contained in:
parent
8479449d14
commit
bca59516cc
|
@ -193,7 +193,7 @@ static bool check_stream_network(int fd)
|
|||
{
|
||||
struct statfs fs;
|
||||
const char *stypes[] = { "afpfs", "nfs", "smbfs", "webdav", "osxfusefs",
|
||||
NULL };
|
||||
"fuse", "fusefs.sshfs", 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