diff options
author | wm4 <wm4@nowhere> | 2018-05-06 21:29:30 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2018-05-24 19:56:34 +0200 |
commit | 79596113ea87460c9280853ae595d16c77b7c4c0 (patch) | |
tree | 879a2789ad5316d9b70cc355b842897cb4101f85 /player/loadfile.c | |
parent | c349e2f337693c53687b0bd5e4d8669363e2d79d (diff) | |
download | mpv-79596113ea87460c9280853ae595d16c77b7c4c0.tar.bz2 mpv-79596113ea87460c9280853ae595d16c77b7c4c0.tar.xz |
player: don't even start loading external tracks when aborting loading
It seems the ytdl script like to continue loading external tracks even
if loading was aborted. Trying to do so will still quickly fail, but not
without a load of log noise. So check and error out early.
Diffstat (limited to 'player/loadfile.c')
-rw-r--r-- | player/loadfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index 09d3bad3a1..e4017a2afa 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -582,7 +582,7 @@ int mp_add_external_file(struct MPContext *mpctx, char *filename, enum stream_type filter, bool unlock) { struct MPOpts *opts = mpctx->opts; - if (!filename) + if (!filename || mp_cancel_test(mpctx->playback_abort)) return -1; char *disp_filename = filename; |