From e1fbd3b790b5fe1ae6efc1dd0477c2da88a5b8dc Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 3 Sep 2015 14:45:32 +0200 Subject: player: log error code on playback exit So far, this required using the client API to know it. --- player/loadfile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index cb4d2ffc0e..c6f0a17276 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -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"); -- cgit v1.2.3