mirror of https://github.com/mpv-player/mpv
Fix resizing when zoom is used and image size changes between frames.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5369 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ec3460e062
commit
eff0ca9eaa
|
@ -392,9 +392,8 @@ static uint32_t config( uint32_t width,uint32_t height,uint32_t d_width,uint32_t
|
||||||
default: draw_alpha_fnc=draw_alpha_null;
|
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 */
|
/* always allocate swsContext as size could change between frames */
|
||||||
if(!zoomFlag)
|
swsContext= getSwsContextFromCmdLine(width, height, in_format, width, height, out_format );
|
||||||
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 );
|
// printf( "X11 color mask: R:%lX G:%lX B:%lX\n",myximage->red_mask,myximage->green_mask,myximage->blue_mask );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue