[vlc-devel] commit: WinCE: volume through playlist ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Jul 9 21:15:13 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul  9 22:14:54 2009 +0300| [6546505c9378d64bc4af5b1484f019decd313407] | committer: Rémi Denis-Courmont 

WinCE: volume through playlist

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6546505c9378d64bc4af5b1484f019decd313407
---

 modules/gui/wince/interface.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/modules/gui/wince/interface.cpp b/modules/gui/wince/interface.cpp
index 8633fbe..00035dd 100644
--- a/modules/gui/wince/interface.cpp
+++ b/modules/gui/wince/interface.cpp
@@ -788,7 +788,9 @@ void Interface::OnChange( int wp )
 
 void Interface::VolumeChange( int i_volume )
 {
-    aout_VolumeSet( p_intf, i_volume * AOUT_VOLUME_MAX / 200 / 2 );
+    playlist_t * p_playlist = pl_Hold( p_intf );
+    aout_VolumeSet( p_playlist, i_volume * AOUT_VOLUME_MAX / 200 / 2 );
+    pl_Release( p_intf );
 }
 
 void Interface::VolumeUpdate()
@@ -797,7 +799,9 @@ void Interface::VolumeUpdate()
 
     if( b_volume_hold ) return;
 
+    playlist_t * p_playlist = pl_Hold( p_intf );
     aout_VolumeGet( p_intf, &i_volume );
+    pl_Release( p_intf );
 
     int i_volume_ctrl = 200 - i_volume * 200 * 2 / AOUT_VOLUME_MAX;
 




More information about the vlc-devel mailing list