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/mplayer | |
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/mplayer')
-rw-r--r-- | gui/mplayer/mw.c | 5 | ||||
-rw-r--r-- | gui/mplayer/sw.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gui/mplayer/mw.c b/gui/mplayer/mw.c index 4e64af3a51..1445afe379 100644 --- a/gui/mplayer/mw.c +++ b/gui/mplayer/mw.c @@ -47,6 +47,7 @@ #include "codec-cfg.h" #include "m_option.h" #include "m_property.h" +#include "mp_core.h" #define GUI_REDRAW_WAIT 375 @@ -72,7 +73,7 @@ int i,pot = 0; void mplMainDraw( void ) { - if ( appMPlayer.mainWindow.State == wsWindowClosed ) exit_player( MSGTR_Exit_quit ); + if ( appMPlayer.mainWindow.State == wsWindowClosed ) exit_player( EXIT_QUIT ); if ( appMPlayer.mainWindow.Visible == wsWindowNotVisible || !mainVisible ) return; @@ -102,7 +103,7 @@ void mplEventHandling( int msg,float param ) { // --- user events case evExit: - exit_player( "Exit" ); + exit_player( EXIT_QUIT ); break; case evPlayNetwork: diff --git a/gui/mplayer/sw.c b/gui/mplayer/sw.c index 349847b5b8..652fbaf761 100644 --- a/gui/mplayer/sw.c +++ b/gui/mplayer/sw.c @@ -24,6 +24,7 @@ #include "config.h" #include "libvo/x11_common.h" #include "help_mp.h" +#include "mp_core.h" #include "gmplayer.h" #include "gui/app.h" @@ -39,7 +40,7 @@ extern int i,pot; void mplSubDraw( void ) { - if ( appMPlayer.subWindow.State == wsWindowClosed ) exit_player( MSGTR_Exit_quit ); + if ( appMPlayer.subWindow.State == wsWindowClosed ) exit_player( EXIT_QUIT ); if ( appMPlayer.subWindow.State == wsWindowFocusIn ) SubVisible++; if ( appMPlayer.subWindow.State == wsWindowFocusOut && metacity_hack != 3 ) SubVisible--; |