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:
parent
496d53a2f2
commit
e1fbd3b790
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user