changeset 4181:159b3d0f517d

patch by Fredrik Kuivinen <freku045@student.liu.se>
author pl
date Tue, 15 Jan 2002 21:30:45 +0000
parents a70ded82ff77
children e9d5b1b5827b
files libvo/x11_common.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Tue Jan 15 21:05:37 2002 +0000
+++ b/libvo/x11_common.c	Tue Jan 15 21:30:45 2002 +0000
@@ -207,10 +207,10 @@
    bpp=mXImage->bits_per_pixel;
    if((vo_depthonscreen+7)/8 != (bpp+7)/8) vo_depthonscreen=bpp; // by A'rpi
    mask=mXImage->red_mask|mXImage->green_mask|mXImage->blue_mask;
-   XDestroyImage( mXImage );
    if(verbose)
      printf("vo: X11 color mask:  %X  (R:%lX G:%lX B:%lX)\n",
 	    mask,mXImage->red_mask,mXImage->green_mask,mXImage->blue_mask);
+   XDestroyImage( mXImage );
  }
  if(((vo_depthonscreen+7)/8)==2){
    if(mask==0x7FFF) vo_depthonscreen=15; else