[vlc-commits] macosx: fixed crash when selecting a QTKit capture device

Felix Paul Kühne git at videolan.org
Sat Sep 29 23:14:02 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Sep 29 23:10:49 2012 +0200| [86d4fa6bf6cc467743e8b0df478393a74a10bfe2] | committer: Felix Paul Kühne

macosx: fixed crash when selecting a QTKit capture device

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

 modules/gui/macosx/open.m |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/open.m b/modules/gui/macosx/open.m
index 5fadf4c..5e8044e 100644
--- a/modules/gui/macosx/open.m
+++ b/modules/gui/macosx/open.m
@@ -544,7 +544,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
 
 - (IBAction)qtkAudioChanged:(id)sender
 {
-    NSInteger i_selectedDevice = [sender indexOfSelectedItem];
+    NSInteger i_selectedDevice = [o_qtk_audio_device_pop indexOfSelectedItem];
     if ([qtkaudioDevices count] >= 1) {
         qtkaudio_currdevice_uid = [[(QTCaptureDevice *)[qtkaudioDevices objectAtIndex:i_selectedDevice] uniqueID] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];
     }



More information about the vlc-commits mailing list