[Mplayer-cvslog] CVS: main/libvo vo_x11.c,1.87,1.88

Arpi of Ize arpi at mplayer.dev.hu
Sun Mar 31 05:03:15 CEST 2002


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv6055

Modified Files:
	vo_x11.c 
Log Message:
fix uninit() crash if no config() call

Index: vo_x11.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_x11.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -r1.87 -r1.88
--- vo_x11.c	27 Mar 2002 04:16:38 -0000	1.87
+++ vo_x11.c	31 Mar 2002 03:03:12 -0000	1.88
@@ -224,6 +224,7 @@
   {
    XDestroyImage( myximage );
   }
+  myximage=NULL;
 }
 
 static uint32_t config( uint32_t width,uint32_t height,uint32_t d_width,uint32_t d_height,uint32_t flags,char *title,uint32_t format,const vo_tune_info_t *info)
@@ -592,6 +593,8 @@
 static void
 uninit(void)
 {
+ if(!myximage) return;
+ 
  freeMyXImage();
  saver_on(mDisplay); // screen saver back on
 




More information about the MPlayer-cvslog mailing list