[MPlayer-cvslog] r25461 - trunk/mplayer.c
ulion
subversion at mplayerhq.hu
Wed Dec 19 09:42:18 CET 2007
Author: ulion
Date: Wed Dec 19 09:42:18 2007
New Revision: 25461
Log:
Make libmenu init and uninit in proper place.
Modified:
trunk/mplayer.c
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c (original)
+++ trunk/mplayer.c Wed Dec 19 09:42:18 2007
@@ -668,6 +668,10 @@ void uninit_player(unsigned int mask){
inited_flags&=~INITED_INPUT;
current_module="uninit_input";
mp_input_uninit();
+#ifdef HAVE_MENU
+ if (use_menu)
+ menu_uninit();
+#endif
}
current_module=NULL;
@@ -2616,9 +2620,6 @@ if(slave_mode)
else if(!noconsolecontrols)
mp_input_add_event_fd(0, getch2);
-inited_flags|=INITED_INPUT;
-current_module = NULL;
-
#ifdef HAVE_MENU
if(use_menu) {
if(menu_cfg && menu_init(mpctx, menu_cfg))
@@ -2639,6 +2640,9 @@ current_module = NULL;
}
#endif
+inited_flags|=INITED_INPUT;
+current_module = NULL;
+
/// Catch signals
#ifndef __MINGW32__
signal(SIGCHLD,child_sighandler);
More information about the MPlayer-cvslog
mailing list