mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
demux, stream: add option to prevent opening referenced files
Quite irresponsibly hacked together. Sue me.
This commit is contained in:
@@ -569,6 +569,9 @@ static int bdmv_dir_stream_open(stream_t *stream)
|
||||
.cfg_title = BLURAY_DEFAULT_TITLE,
|
||||
};
|
||||
|
||||
if (!stream->access_references)
|
||||
goto unsupported;
|
||||
|
||||
char *path = mp_file_get_path(priv, bstr0(stream->url));
|
||||
if (!path)
|
||||
goto unsupported;
|
||||
|
||||
Reference in New Issue
Block a user