# HG changeset patch # User ib # Date 1374968896 0 # Node ID ba5fa3e71247bd51b71bad6a90cd611dabc5151c # Parent 55cac32d68c2a19a388ffa0b9b65f3bcb94f868b Keep paused mode when changing the aspect ratio. Patch by Hans-Dieter Kosch, hdkosch kabelbw de. diff -r 55cac32d68c2 -r ba5fa3e71247 gui/ui/actions.c --- a/gui/ui/actions.c Sat Jul 27 23:07:46 2013 +0000 +++ b/gui/ui/actions.c Sat Jul 27 23:48:16 2013 +0000 @@ -93,7 +93,7 @@ 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 @@ 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; diff -r 55cac32d68c2 -r ba5fa3e71247 gui/win32/gui.c --- a/gui/win32/gui.c Sat Jul 27 23:07:46 2013 +0000 +++ b/gui/win32/gui.c Sat Jul 27 23:48:16 2013 +0000 @@ -354,7 +354,7 @@ 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 @@ 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: