From 4c5c9c03ec03b44373da99f8b15912b464149217 Mon Sep 17 00:00:00 2001 From: pontscho Date: Tue, 11 Dec 2001 15:34:21 +0000 Subject: [PATCH] mf bug fixed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3459 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_x11.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index 8dd0fe9b11..dfbc942a2c 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -70,7 +70,6 @@ static GC mygc; static XImage *myximage; static int depth,bpp,mode; static XWindowAttributes attribs; -static int X_already_started=0; //static int vo_dwidth,vo_dheight; @@ -190,7 +189,6 @@ static uint32_t init( uint32_t width,uint32_t height,uint32_t d_width,uint32_t d else #endif { - if ( X_already_started ) return -1; if( !vo_init() ) return 0; // Can't open X11 hint.x=0; @@ -426,7 +424,6 @@ static uint32_t init( uint32_t width,uint32_t height,uint32_t d_width,uint32_t d XSelectInput( mDisplay,mywindow,StructureNotifyMask | KeyPressMask ); saver_off(mDisplay); } - X_already_started++; return 0; } @@ -446,7 +443,6 @@ static void Terminate_Display_Process( void ) #endif XDestroyWindow( mDisplay,mywindow ); XCloseDisplay( mDisplay ); - X_already_started=0; } static void Display_Image( XImage *myximage,uint8_t *ImageData )