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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user