summaryrefslogtreecommitdiffstats
path: root/mp_core.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-12-02 19:53:41 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-12-02 19:53:41 +0000
commitf6b9f425160e4a6f44d1c26ed0e2aaefcfcf925e (patch)
tree826b0bb5e0e5f0b08d5b922a07529368557a3d70 /mp_core.h
parent27b167bb75b908541563bab964e97b06d621f837 (diff)
downloadmpv-f6b9f425160e4a6f44d1c26ed0e2aaefcfcf925e.tar.bz2
mpv-f6b9f425160e4a6f44d1c26ed0e2aaefcfcf925e.tar.xz
Print ID_EXIT and exit reason message in identify mode when exiting.
Patch by rvm [rvm3000 ya com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28066 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp_core.h')
-rw-r--r--mp_core.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/mp_core.h b/mp_core.h
index 19cb5ff08c..2fa98e57d4 100644
--- a/mp_core.h
+++ b/mp_core.h
@@ -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 reinit_audio_chain(void);
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);