diff --git a/stream/stream_file.c b/stream/stream_file.c index d7c6799d7d..a365c0353f 100644 --- a/stream/stream_file.c +++ b/stream/stream_file.c @@ -168,7 +168,13 @@ char *mp_file_get_path(void *talloc_ctx, bstr url) } } -#if HAVE_BSD_FSTATFS +// Apple's required-reason API policy treats fstatfs() as a disk-space API. +// mpv only uses it here as a best-effort remote-filesystem classifier, not to +// retrieve disk capacity. Apple provides no approved reason for that use. +// Fall through to the conservative portable implementation on Apple: files +// remain playable, but mpv will not auto-classify mounted network filesystems +// as streaming inputs. Explicit network URLs are unaffected. +#if HAVE_BSD_FSTATFS && !defined(__APPLE__) static bool check_stream_network(int fd) { struct statfs fs;