[SCM] libav/experimental: Do not call SDL_SetVideoMode() with the same size as previously as this blanks the window.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:04:02 UTC 2013


The following commit has been merged in the experimental branch:
commit d3d7b12edfd88f9915e699b083adb55c93f5d586
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Wed Mar 10 15:39:31 2010 +0000

    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

diff --git a/ffplay.c b/ffplay.c
index bfe10be..fb99d9a 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

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list