1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +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_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) if (mpctx->error_playing == MPV_ERROR_UNKNOWN_FORMAT)
MP_ERR(mpctx, "Failed to recognize file format.\n"); MP_ERR(mpctx, "Failed to recognize file format.\n");
MP_INFO(mpctx, "\n"); MP_INFO(mpctx, "\n");