[vlc-commits] auhal: volumeSet and muteSet is not supported for digital output

David Fuhrmann git at videolan.org
Wed Apr 17 18:06:41 CEST 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Wed Apr 17 18:04:13 2013 +0200| [353dcee1a9f4d76464497482f9725ac6c5fdbab0] | committer: David Fuhrmann

auhal: volumeSet and muteSet is not supported for digital output

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

 modules/audio_output/auhal.c |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index d926f6a..f293de1 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -176,6 +176,7 @@ static int Open(vlc_object_t *obj)
 
     vlc_mutex_init(&p_sys->lock);
     vlc_cond_init(&p_sys->cond);
+    p_sys->b_digital = false;
 
     p_aout->sys = p_sys;
     p_aout->start = Start;
@@ -1092,6 +1093,10 @@ static int VolumeSet(audio_output_t * p_aout, float volume)
     struct aout_sys_t *p_sys = p_aout->sys;
     OSStatus ostatus;
 
+    if(p_sys->b_digital) {
+        return VLC_EGENERIC;
+    }
+
     aout_VolumeReport(p_aout, volume);
 
     /* Set volume for output unit */
@@ -1113,6 +1118,10 @@ static int MuteSet(audio_output_t * p_aout, bool mute)
     struct   aout_sys_t *p_sys = p_aout->sys;
     OSStatus ostatus;
 
+    if(p_sys->b_digital) {
+        return VLC_EGENERIC;
+    }
+
     aout_MuteReport(p_aout, mute);
 
     float volume = .0;



More information about the vlc-commits mailing list