diff options
author | wm4 <wm4@nowhere> | 2014-10-28 16:19:07 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-28 20:30:12 +0100 |
commit | 65db3291b327797ac7d09ba2ea36db9ba5383f18 (patch) | |
tree | d43c2bb41969472e18c71e7b7275e5cbd2206814 /player/core.h | |
parent | 3cde02fe2292bbc6e213b6a619c2bafa21412276 (diff) | |
download | mpv-65db3291b327797ac7d09ba2ea36db9ba5383f18.tar.bz2 mpv-65db3291b327797ac7d09ba2ea36db9ba5383f18.tar.xz |
client API: better error reporting
Give somewhat more information on playback failure.
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/player/core.h b/player/core.h index 9b9873e610..32c6b45db6 100644 --- a/player/core.h +++ b/player/core.h @@ -38,6 +38,7 @@ enum stop_play_reason { PT_STOP, // stop playback, clear playlist PT_RELOAD_DEMUXER, // restart playback, but keep stream open PT_QUIT, // stop playback, quit player + PT_ERROR, // play next playlist entry (due to an error) }; enum exit_reason { @@ -186,7 +187,7 @@ typedef struct MPContext { enum exit_reason quit_player_rc; int quit_custom_rc; bool has_quit_custom_rc; - bool error_playing; + int error_playing; char **resume_defaults; int64_t shown_vframes, shown_aframes; |