[vlc-devel] [PATCH 2/2] qtsound: minor fix for selecting the device with the correct UID

Michael Feurstein michael.feurstein at gmail.com
Fri Feb 10 11:19:40 CET 2012


---
 modules/access/qtsound.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/qtsound.m b/modules/access/qtsound.m
index 19f8d64..d0b3de8 100644
--- a/modules/access/qtsound.m
+++ b/modules/access/qtsound.m
@@ -293,7 +293,7 @@ static int Open( vlc_object_t *p_this )
         QTCaptureDevice *qtk_audioDevice;
         qtk_audioDevice = [myAudioDevices objectAtIndex:iaudio];
         msg_Dbg( p_demux, "qtsound audio %u/%lu localizedDisplayName: %s uniqueID: %s", iaudio, [myAudioDevices count], [[qtk_audioDevice localizedDisplayName] UTF8String], [[qtk_audioDevice uniqueID] UTF8String]);
-        if([[[qtk_audioDevice localizedDisplayName]stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] isEqualToString:qtk_curraudiodevice_uid]){
+        if([[[qtk_audioDevice uniqueID]stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] isEqualToString:qtk_curraudiodevice_uid]){
             msg_Dbg( p_demux, "Device found" );
             break;
         }
-- 
1.7.4.4




More information about the vlc-devel mailing list