Mercurial > mplayer.hg
diff gui/interface.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 | 3a3370c00ba6 |
children | 016e5fc1dead |
line wrap: on
line diff
--- a/gui/interface.c Sun Feb 14 09:19:30 2010 +0000 +++ b/gui/interface.c Sun Feb 14 10:53:20 2010 +0000 @@ -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 @@ } } - 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;