diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-03-10 15:39:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-03-10 15:39:31 +0000 |
commit | d3d7b12edfd88f9915e699b083adb55c93f5d586 (patch) | |
tree | 329e57681c2607de3257e787d911a01358cabfe5 /ffplay.c | |
parent | 114a93c7002c311d348fbfe0d50c82d61858ce5d (diff) | |
download | ffmpeg-d3d7b12edfd88f9915e699b083adb55c93f5d586.tar.gz |
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
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |