[MPlayer-cvslog] r35637 - trunk/gui/ui/main.c

ib subversion at mplayerhq.hu
Sun Dec 9 15:42:36 CET 2012


Author: ib
Date: Sun Dec  9 15:42:36 2012
New Revision: 35637

Log:
Set volume in evSetBalance.

This has been forgotten in r35633.

Modified:
   trunk/gui/ui/main.c

Modified: trunk/gui/ui/main.c
==============================================================================
--- trunk/gui/ui/main.c	Sun Dec  9 15:41:24 2012	(r35636)
+++ trunk/gui/ui/main.c	Sun Dec  9 15:42:36 2012	(r35637)
@@ -125,7 +125,7 @@ static unsigned last_redraw_time = 0;
 
 void uiEventHandling( int msg,float param )
 {
- int iparam = (int)param;
+ int iparam = (int)param, osd;
  mixer_t *mixer = mpctx_get_mixer(guiInfo.mpcontext);
 
  switch( msg )
@@ -307,6 +307,10 @@ NoPause:
    case evSetBalance:
         guiInfo.Balance=param;
         mixer_setbalance( mixer,(guiInfo.Balance - 50.0 ) / 50.0 );
+        osd = osd_level;
+        osd_level = 0;
+        uiEventHandling(evSetVolume, guiInfo.Volume);
+        osd_level = osd;
         if ( osd_level )
          {
           osd_visible=(GetTimerMS() + 1000) | 1;


More information about the MPlayer-cvslog mailing list