[FFmpeg-cvslog] r22433 - trunk/ffplay.c
michael
subversion
Wed Mar 10 16:39:31 CET 2010
Author: michael
Date: Wed Mar 10 16:39:31 2010
New Revision: 22433
Log:
Do not call SDL_SetVideoMode() with the same size as previously
as this blanks the window.
Modified:
trunk/ffplay.c
Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c Wed Mar 10 15:26:15 2010 (r22432)
+++ trunk/ffplay.c Wed Mar 10 16:39:31 2010 (r22433)
@@ -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
More information about the ffmpeg-cvslog
mailing list