# HG changeset patch # User atmos4 # Date 1017202598 0 # Node ID fdb92215a1fcb0bc74954f7e5cd6ac628697790f # Parent 658ea5d7316a52a93deb91d43ab16f300061347e Fix resizing when zoom is used and image size changes between frames. diff -r 658ea5d7316a -r fdb92215a1fc libvo/vo_x11.c --- a/libvo/vo_x11.c Wed Mar 27 03:45:55 2002 +0000 +++ b/libvo/vo_x11.c Wed Mar 27 04:16:38 2002 +0000 @@ -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 );