[Ffmpeg-cvslog] r7386 - trunk/ffplay.c

michael subversion
Sat Dec 30 12:32:11 CET 2006


Author: michael
Date: Sat Dec 30 12:32:10 2006
New Revision: 7386

Modified:
   trunk/ffplay.c

Log:
remove code duplication


Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	(original)
+++ trunk/ffplay.c	Sat Dec 30 12:32:10 2006
@@ -2142,26 +2142,13 @@
 
 static void toggle_full_screen(void)
 {
-    int w, h, flags;
     is_full_screen = !is_full_screen;
     if (!fs_screen_width) {
         /* use default SDL method */
         SDL_WM_ToggleFullScreen(screen);
     } else {
         /* use the recorded resolution */
-        flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL;
-        if (is_full_screen) {
-            w = fs_screen_width;
-            h = fs_screen_height;
-            flags |= SDL_FULLSCREEN;
-        } else {
-            w = screen_width;
-            h = screen_height;
-            flags |= SDL_RESIZABLE;
-        }
-        screen = SDL_SetVideoMode(w, h, 0, flags);
-        cur_stream->width = w;
-        cur_stream->height = h;
+        video_open(cur_stream);
     }
 }
 




More information about the ffmpeg-cvslog mailing list