mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 18:57:35 +00:00
demux: don't attempt to open a demuxer after abort signal was given
demux_open() kept trying to fallback to other demuxers when opening was cancelled. This was not really a problem, but it was stupid.
This commit is contained in:
parent
ecb776f88e
commit
288eaacd85
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user