aboutsummaryrefslogtreecommitdiffhomepage
path: root/demux/demux_cue.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2016-12-04 23:15:31 +0100
committerGravatar wm4 <wm4@nowhere>2016-12-04 23:15:31 +0100
commitceb2e1026d4295d3831d080dc18f8ca5db56bc5c (patch)
treeff0bc73ad982c1a1740aa8b1fb31b83fabbe7879 /demux/demux_cue.c
parent83c5f704e7d483e2db6df90dacd24896d45fe39a (diff)
demux, stream: add option to prevent opening referenced files
Quite irresponsibly hacked together. Sue me.
Diffstat (limited to 'demux/demux_cue.c')
-rw-r--r--demux/demux_cue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/demux/demux_cue.c b/demux/demux_cue.c
index 673e8b9f27..ba97ca0c1b 100644
--- a/demux/demux_cue.c
+++ b/demux/demux_cue.c
@@ -253,6 +253,9 @@ out:
static int try_open_file(struct demuxer *demuxer, enum demux_check check)
{
+ if (!demuxer->access_references)
+ return -1;
+
struct stream *s = demuxer->stream;
if (check >= DEMUX_CHECK_UNSAFE) {
bstr d = stream_peek(s, PROBE_SIZE);