Commit 86d4fa6b authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed crash when selecting a QTKit capture device

parent 46300635
...@@ -544,7 +544,7 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -544,7 +544,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
- (IBAction)qtkAudioChanged:(id)sender - (IBAction)qtkAudioChanged:(id)sender
{ {
NSInteger i_selectedDevice = [sender indexOfSelectedItem]; NSInteger i_selectedDevice = [o_qtk_audio_device_pop indexOfSelectedItem];
if ([qtkaudioDevices count] >= 1) { if ([qtkaudioDevices count] >= 1) {
qtkaudio_currdevice_uid = [[(QTCaptureDevice *)[qtkaudioDevices objectAtIndex:i_selectedDevice] uniqueID] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; qtkaudio_currdevice_uid = [[(QTCaptureDevice *)[qtkaudioDevices objectAtIndex:i_selectedDevice] uniqueID] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment