aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-03-10 15:39:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-03-10 15:39:31 +0000
commitd3d7b12edfd88f9915e699b083adb55c93f5d586 (patch)
tree329e57681c2607de3257e787d911a01358cabfe5 /ffplay.c
parent114a93c7002c311d348fbfe0d50c82d61858ce5d (diff)
downloadffmpeg-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index bfe10bebd1..fb99d9ad3e 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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