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

Atmosfear atmos4 at mplayer.dev.hu
Wed Mar 27 05:16:41 CET 2002


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

Modified Files:
	vo_x11.c 
Log Message:
Fix resizing when zoom is used and image size changes between frames.


Index: vo_x11.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_x11.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -r1.86 -r1.87
--- vo_x11.c	21 Mar 2002 19:23:20 -0000	1.86
+++ vo_x11.c	27 Mar 2002 04:16:38 -0000	1.87
@@ -392,9 +392,8 @@
    	default:  draw_alpha_fnc=draw_alpha_null;
   }
 
-  /* we avoid unnecessary allocating the swsContext here as it is allocated during draw_slice if zoom is on */
-  if(!zoomFlag)
-	swsContext= getSwsContextFromCmdLine(width, height, in_format, width, height, out_format );
+  /* always allocate swsContext as size could change between frames */
+  swsContext= getSwsContextFromCmdLine(width, height, in_format, width, height, out_format );
 
 //  printf( "X11 color mask:  R:%lX  G:%lX  B:%lX\n",myximage->red_mask,myximage->green_mask,myximage->blue_mask );
 




More information about the MPlayer-cvslog mailing list