Browse Source

macosx: Check for numberOfAudioDevices below 0

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
pull/192/head
Claudio Cambra 9 months ago
committed by Felix Paul Kühne
parent
commit
0b2f6feffc
  1. 2
      modules/gui/macosx/menus/VLCMainMenu.m

2
modules/gui/macosx/menus/VLCMainMenu.m

@ -1105,7 +1105,7 @@ typedef NS_ENUM(NSInteger, VLCObjectType) {
return;
int numberOfAudioDevices = aout_DevicesList(p_aout, &ids, &names);
if (numberOfAudioDevices == -1) {
if (numberOfAudioDevices < 0) {
aout_Release(p_aout);
return;
}

Loading…
Cancel
Save