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

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


vlc/vlc-1.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Jul 18 12:05:08 2011 +0200| [35169cb4b7ee041492490d325b988043883009c2] | committer: Felix Paul Kühne

auhal: fixed another improper use of AudioObjectHasProperty

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

 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 477f144..d5c7e1e 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -866,7 +866,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