[vlc-commits] auhal: fixed another improper use of AudioObjectHasProperty

Felix Paul Kühne git at videolan.org
Mon Jul 18 12:12:08 CEST 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Jul 18 12:11:41 2011 +0200| [ffce37927635d4974cb7016ac66500b565345dd1] | committer: Felix Paul Kühne

auhal: fixed another improper use of AudioObjectHasProperty

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

 modules/audio_output/auhal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index 27c9f99..f50c1a3 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -867,7 +867,7 @@ static void Close( vlc_object_t * p_this )
             Boolean b_writeable;
             /* Revert mixable to true if we are allowed to */
             AudioObjectPropertyAddress audioDeviceSupportsMixingAddress = { kAudioDevicePropertySupportsMixing , kAudioDevicePropertyScopeOutput, kAudioObjectPropertyElementMaster };
-            b_writeable = AudioObjectHasProperty( p_sys->i_selected_dev, &audioDeviceSupportsMixingAddress );
+            err = AudioObjectIsPropertySettable( p_sys->i_selected_dev, &audioDeviceSupportsMixingAddress, &b_writeable );
             err = AudioObjectGetPropertyData( p_sys->i_selected_dev, &audioDeviceSupportsMixingAddress, 0, NULL, &i_param_size, &b_mix );
 
             if( !err && b_writeable )



More information about the vlc-commits mailing list