diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-14 10:53:20 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-14 10:53:20 +0000 |
commit | 11b55ec7a89c8605401e40b6a4c56ca8971350da (patch) | |
tree | 0058d789332d87fbdbb29b67274548213a762432 /gui/interface.c | |
parent | 3e5d40ff2e9a45cb4f55f23b787f32bf359bd3d5 (diff) | |
download | mpv-11b55ec7a89c8605401e40b6a4c56ca8971350da.tar.bz2 mpv-11b55ec7a89c8605401e40b6a4c56ca8971350da.tar.xz |
Fix exit_player() usage throughout the codebase.
exit_player() was declared with differing parameter types in mplayer.c and
mplayer.h. Make the declaration in the .h file match the one in the .c file
and adjust all usages of exit_player() throughout the codebase. Also move
the exit_player() declaration into mp_core.h next to exit_player_with_rc().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30558 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'gui/interface.c')
-rw-r--r-- | gui/interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/interface.c b/gui/interface.c index 3351656d87..c78c2eafe2 100644 --- a/gui/interface.c +++ b/gui/interface.c @@ -37,6 +37,7 @@ #include "cfg.h" #include "help_mp.h" #include "get_path.h" +#include "mp_core.h" #include "libvo/x11_common.h" #include "libvo/video_out.h" #include "libvo/font_load.h" @@ -781,7 +782,7 @@ int guiGetEvent( int type,char * arg ) } } - if ( !video_driver_list && !video_driver_list[0] ) { gtkMessageBox( GTK_MB_FATAL,MSGTR_IDFGCVD ); exit_player( "gui init" ); } + if ( !video_driver_list && !video_driver_list[0] ) { gtkMessageBox( GTK_MB_FATAL,MSGTR_IDFGCVD ); exit_player(EXIT_ERROR); } { int i = 0; |