diff options
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c index 5028afa15e..e094d23222 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -939,6 +939,9 @@ static struct demuxer *open_given_type(struct mpv_global *global, struct demuxer_params *params, enum demux_check check) { + if (mp_cancel_test(stream->cancel)) + return NULL; + struct demuxer *demuxer = talloc_ptrtype(NULL, demuxer); *demuxer = (struct demuxer) { .desc = desc, |