[MPlayer-cvslog] r37030 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Fri Mar 21 15:49:13 CET 2014


Author: ib
Date: Fri Mar 21 15:49:13 2014
New Revision: 37030

Log:
Use the new internal event to set volume.

This avoids duplicate code.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Fri Mar 21 15:42:48 2014	(r37029)
+++ trunk/gui/interface.c	Fri Mar 21 15:49:13 2014	(r37030)
@@ -751,9 +751,7 @@ int gui(int what, void *data)
             guiInfo.Balance = (b + 1.0) * 50.0; // transform -1..1 to 0..100
 
             if (guiInfo.Balance != last_balance) {
-                l = guiInfo.Volume * (100.0 - guiInfo.Balance) / 50.0;
-                r = guiInfo.Volume * guiInfo.Balance / 50.0;
-                mixer_setvolume(mixer, FFMIN(l, guiInfo.Volume), FFMIN(r, guiInfo.Volume));
+                uiEvent(ivSetVolume, guiInfo.Volume);
                 last_balance = guiInfo.Balance;
             }
         }


More information about the MPlayer-cvslog mailing list