Mercurial > mplayer.hg
diff gui/mplayer/sw.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 | 1d9f646f8db3 |
line wrap: on
line diff
--- a/gui/mplayer/sw.c Sun Feb 14 09:19:30 2010 +0000 +++ b/gui/mplayer/sw.c Sun Feb 14 10:53:20 2010 +0000 @@ -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 @@ 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--;