Mercurial > mplayer.hg
diff mp_core.h @ 28032:92e770f6e890
Print ID_EXIT and exit reason message in identify mode when exiting.
Patch by rvm [rvm3000 ya com]
author | reimar |
---|---|
date | Tue, 02 Dec 2008 19:53:41 +0000 |
parents | 14c5017f40d2 |
children | b7bb4a899a6b |
line wrap: on
line diff
--- a/mp_core.h Tue Dec 02 15:03:19 2008 +0000 +++ b/mp_core.h Tue Dec 02 19:53:41 2008 +0000 @@ -41,6 +41,12 @@ #define PT_UP_PREV -3 #define PT_STOP 4 +typedef enum { + EXIT_NONE, + EXIT_QUIT, + EXIT_EOF, + EXIT_ERROR +} exit_reason_t; typedef struct MPContext { int osd_show_percentage; @@ -125,7 +131,7 @@ void init_vo_spudec(void); double playing_audio_pts(sh_audio_t *sh_audio, demux_stream_t *d_audio, const ao_functions_t *audio_out); -void exit_player_with_rc(const char* how, int rc); +void exit_player_with_rc(exit_reason_t how, int rc); void add_subtitles(char *filename, float fps, int noerr); int reinit_video_chain(void);