1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

player: don't print format detection error when aborting loading

The way playback/loading is stopped on the demuxer layer makes it report
an error to the higher levels of the player. But if playback/loading was
explicitly aborted, printing such an error is confusing and misleading.
This was probably just an oversight anyway. Fix it by using the libmpv
API reported error field instead, which handles this better.
This commit is contained in:
wm4 2016-11-29 17:16:22 +01:00
parent 4958c1a556
commit 20f02229cd

View File

@ -1231,7 +1231,7 @@ terminate_playback:
MP_VERBOSE(mpctx, "finished playback, %s (reason %d)\n",
mpv_error_string(end_event.error), end_event.reason);
if (mpctx->error_playing == MPV_ERROR_UNKNOWN_FORMAT)
if (end_event.error == MPV_ERROR_UNKNOWN_FORMAT)
MP_ERR(mpctx, "Failed to recognize file format.\n");
MP_INFO(mpctx, "\n");