changeset 5975:157174abe70a

missing if(use_gui) - found by Nilmoni Deb <ndeb@ece.cmu.edu>
author arpi
date Sat, 04 May 2002 22:34:47 +0000
parents 4396ead317d3
children ff3e5901b2cc
files libvo/vo_xmga.c libvo/vo_xv.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xmga.c	Sat May 04 21:26:45 2002 +0000
+++ b/libvo/vo_xmga.c	Sat May 04 22:34:47 2002 +0000
@@ -299,7 +299,7 @@
 #endif
    vo_gc=XCreateGC( mDisplay,vo_window,GCForeground,&wGCV );
 #ifdef HAVE_NEW_GUI
-  } else guiGetEvent( guiSetShVideo,0 );
+  } else if(use_gui) guiGetEvent( guiSetShVideo,0 );
 #endif
 
  set_window();
--- a/libvo/vo_xv.c	Sat May 04 21:26:45 2002 +0000
+++ b/libvo/vo_xv.c	Sat May 04 22:34:47 2002 +0000
@@ -452,7 +452,7 @@
      }
 #endif
 #ifdef HAVE_NEW_GUI
-  } else guiGetEvent( guiSetShVideo,0 );
+  } else if(use_gui) guiGetEvent( guiSetShVideo,0 );
 #endif
 
      mp_msg(MSGT_VO,MSGL_V, "using Xvideo port %d for hw scaling\n",xv_port );