1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

Do not call SDL_SetVideoMode() with the same size as previously

as this blanks the window.

Originally committed as revision 22433 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2010-03-10 15:39:31 +00:00
parent 114a93c700
commit d3d7b12edf

View File

@ -965,6 +965,10 @@ static int video_open(VideoState *is){
w = 640;
h = 480;
}
if(screen && is->width == screen->w && screen->w == w
&& is->height== screen->h && screen->h == h)
return 0;
#ifndef __APPLE__
screen = SDL_SetVideoMode(w, h, 0, flags);
#else