[MPlayer-cvslog] r36370 - in trunk/gui: ui/actions.c win32/gui.c

ib subversion at mplayerhq.hu
Sun Jul 28 01:48:16 CEST 2013


Author: ib
Date: Sun Jul 28 01:48:16 2013
New Revision: 36370

Log:
Keep paused mode when changing the aspect ratio.

Patch by Hans-Dieter Kosch, hdkosch kabelbw de.

Modified:
   trunk/gui/ui/actions.c
   trunk/gui/win32/gui.c

Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c	Sun Jul 28 01:07:46 2013	(r36369)
+++ trunk/gui/ui/actions.c	Sun Jul 28 01:48:16 2013	(r36370)
@@ -93,7 +93,7 @@ void uiEvent(int ev, float param)
     int iparam     = (int)param, osd;
     mixer_t *mixer = mpctx_get_mixer(guiInfo.mpcontext);
     float aspect;
-    char cmd[32];
+    char cmd[40];
 
     switch (ev) {
 /* user events */
@@ -443,7 +443,7 @@ play:
             aspect = -1;
         }
 
-        snprintf(cmd, sizeof(cmd), "switch_ratio %f", aspect);
+        snprintf(cmd, sizeof(cmd), "pausing_keep switch_ratio %f", aspect);
         mp_input_queue_cmd(mp_input_parse_cmd(cmd));
 
         break;

Modified: trunk/gui/win32/gui.c
==============================================================================
--- trunk/gui/win32/gui.c	Sun Jul 28 01:07:46 2013	(r36369)
+++ trunk/gui/win32/gui.c	Sun Jul 28 01:48:16 2013	(r36370)
@@ -354,7 +354,7 @@ static void updatedisplay(gui_t *gui, HW
 static LRESULT CALLBACK VideoProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
 {
     float aspect;
-    char cmd[32];
+    char cmd[40];
     gui_t *gui = (gui_t *) GetWindowLongPtr(hWnd, GWLP_USERDATA);
     if (gui && (gui->videowindow != hWnd)) return FALSE;
 
@@ -488,7 +488,7 @@ static LRESULT CALLBACK VideoProc(HWND h
                             aspect = -1;
                             break;
                     }
-                    snprintf(cmd, sizeof(cmd), "switch_ratio %f", aspect);
+                    snprintf(cmd, sizeof(cmd), "pausing_keep switch_ratio %f", aspect);
                     mp_input_queue_cmd(mp_input_parse_cmd(cmd));
                     break;
                 case IDSUB_TOGGLE:


More information about the MPlayer-cvslog mailing list