1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00

player: log error code on playback exit

So far, this required using the client API to know it.
This commit is contained in:
wm4 2015-09-03 14:45:32 +02:00
parent 496d53a2f2
commit e1fbd3b790

View File

@ -1293,6 +1293,8 @@ terminate_playback:
};
mp_notify(mpctx, MPV_EVENT_END_FILE, &end_event);
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)
MP_ERR(mpctx, "Failed to recognize file format.\n");
MP_INFO(mpctx, "\n");