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

ib subversion at mplayerhq.hu
Sun Jul 28 00:25:57 CEST 2013


Author: ib
Date: Sun Jul 28 00:25:57 2013
New Revision: 36368

Log:
Use again special value -1 to set original aspect ratio.

With -1, the switch_ratio command does exactly the calculation
being performed here.

This reverts changes in setting the value for the aspect ratio
made in r36358 and r36360.

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

Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c	Sat Jul 27 23:16:06 2013	(r36367)
+++ trunk/gui/ui/actions.c	Sun Jul 28 00:25:57 2013	(r36368)
@@ -440,7 +440,7 @@ play:
 
         case 1:
         default:
-            aspect = (float)guiInfo.sh_video->disp_w / guiInfo.sh_video->disp_h;
+            aspect = -1;
         }
 
         snprintf(cmd, sizeof(cmd), "switch_ratio %f", aspect);

Modified: trunk/gui/win32/gui.c
==============================================================================
--- trunk/gui/win32/gui.c	Sat Jul 27 23:16:06 2013	(r36367)
+++ trunk/gui/win32/gui.c	Sun Jul 28 00:25:57 2013	(r36368)
@@ -485,7 +485,7 @@ static LRESULT CALLBACK VideoProc(HWND h
                             aspect = 2.35;
                             break;
                         default:
-                            aspect = (float) guiInfo.sh_video->disp_w / guiInfo.sh_video->disp_h;
+                            aspect = -1;
                             break;
                     }
                     snprintf(cmd, sizeof(cmd), "switch_ratio %f", aspect);


More information about the MPlayer-cvslog mailing list