diff options
author | wm4 <wm4@nowhere> | 2015-09-03 14:45:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-03 14:45:32 +0200 |
commit | e1fbd3b790b5fe1ae6efc1dd0477c2da88a5b8dc (patch) | |
tree | 88976a39de35ec9a49b6d1b5beb29d2e0e593df1 /player | |
parent | 496d53a2f2f7db361e558aa69051fcce7ef63b7f (diff) | |
download | mpv-e1fbd3b790b5fe1ae6efc1dd0477c2da88a5b8dc.tar.bz2 mpv-e1fbd3b790b5fe1ae6efc1dd0477c2da88a5b8dc.tar.xz |
player: log error code on playback exit
So far, this required using the client API to know it.
Diffstat (limited to 'player')
-rw-r--r-- | player/loadfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |