summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/loadfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 519e841ac7..5c741369c0 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -642,7 +642,8 @@ int mp_add_external_file(struct MPContext *mpctx, char *filename,
return first_num;
err_out:
- MP_ERR(mpctx, "Can not open external file %s.\n", disp_filename);
+ if (!mp_cancel_test(mpctx->playback_abort))
+ MP_ERR(mpctx, "Can not open external file %s.\n", disp_filename);
return -1;
}