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

@@ -562,6 +562,9 @@ static int ifo_dvdnav_stream_open(stream_t *stream)
struct priv *priv = talloc_zero(stream, struct priv);
stream->priv = priv;
if (!stream->access_references)
goto unsupported;
priv->track = TITLE_LONGEST;
char *path = mp_file_get_path(priv, bstr0(stream->url));