demux, stream: add option to prevent opening referenced files

Quite irresponsibly hacked together. Sue me.
This commit is contained in:
wm4
2016-12-04 23:15:31 +01:00
parent 83c5f704e7
commit ceb2e1026d
16 changed files with 81 additions and 3 deletions

View File

@@ -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;