diff options
author | Andre D <andre@andred.ca> | 2013-08-02 01:32:38 -0700 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-08-02 13:00:25 +0200 |
commit | bda5e6d9fd6827b3e5d4cf3f8cafef5e3e079370 (patch) | |
tree | 23a877a121dff57f6352761fe830529826b44235 /core/mp_core.h | |
parent | e56cedb3844ad2a0d8a5981c3a5df7c9c34771a6 (diff) | |
download | mpv-bda5e6d9fd6827b3e5d4cf3f8cafef5e3e079370.tar.bz2 mpv-bda5e6d9fd6827b3e5d4cf3f8cafef5e3e079370.tar.xz |
mplayer: add more verbose exit codes
Diffstat (limited to 'core/mp_core.h')
-rw-r--r-- | core/mp_core.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/mp_core.h b/core/mp_core.h index 39a05e0e3b..126c646a0b 100644 --- a/core/mp_core.h +++ b/core/mp_core.h @@ -52,8 +52,10 @@ enum stop_play_reason { enum exit_reason { EXIT_NONE, EXIT_QUIT, - EXIT_EOF, - EXIT_ERROR + EXIT_PLAYED, + EXIT_ERROR, + EXIT_NOTPLAYED, + EXIT_SOMENOTPLAYED }; struct timeline_part { @@ -135,7 +137,10 @@ typedef struct MPContext { unsigned int initialized_flags; // which subsystems have been initialized // Return code to use with PT_QUIT - int quit_player_rc; + enum exit_reason quit_player_rc; + int quit_custom_rc; + bool has_quit_custom_rc; + bool error_playing; struct demuxer **sources; int num_sources; |