[Mplayer-cvslog] CVS: main/Gui/mplayer/gtk opts.c,1.61,1.62

Zoltan Ponekker syncmail at mplayerhq.hu
Tue Feb 3 20:02:47 CET 2004


CVS change done by Zoltan Ponekker

Update of /cvsroot/mplayer/main/Gui/mplayer/gtk
In directory mail:/var2/tmp/cvs-serv11923/Gui/mplayer/gtk

Modified Files:
	opts.c 
Log Message:
'video window vanishes after pause' bugfix, based on André Kühne's (andre.kuehne at gmx.net) bugreport

Index: opts.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/opts.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- opts.c	25 May 2003 17:25:59 -0000	1.61
+++ opts.c	3 Feb 2004 19:02:45 -0000	1.62
@@ -688,6 +688,7 @@
 
 static void prToggled( GtkToggleButton * togglebutton,gpointer user_data )
 {
+ int window;
  switch ( (int)user_data )
   {
    case 0: // extra stereo coefficient
@@ -707,9 +708,11 @@
 	  }
 	if ( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBShowVideoWindow ) ) )
 	 {
-	  wsVisibleWindow( &appMPlayer.subWindow,wsShowWindow );
+	  window=wsShowWindow;
 	  gtkActive( Preferences );
-	 } else wsVisibleWindow( &appMPlayer.subWindow,wsHideWindow );
+	 } else window=wsHideWindow;
+
+	if ( !guiIntfStruct.Playing ) wsVisibleWindow( &appMPlayer.subWindow,window );
 	break;
    case 4:
    case 5:




More information about the MPlayer-cvslog mailing list