Mercurial > mplayer.hg
diff gui/mplayer/mw.c @ 30516:f4e017b6921a
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().
author | diego |
---|---|
date | Sun, 14 Feb 2010 10:53:20 +0000 |
parents | 0f1b5b68af32 |
children | 7bebe34b6ad2 |
line wrap: on
line diff
--- a/gui/mplayer/mw.c Sun Feb 14 09:19:30 2010 +0000 +++ b/gui/mplayer/mw.c Sun Feb 14 10:53:20 2010 +0000 @@ -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 @@ 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 @@ { // --- user events case evExit: - exit_player( "Exit" ); + exit_player( EXIT_QUIT ); break; case evPlayNetwork: