Commit 6d85209c authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fix audio device selection visuals and remove fake 'Default' item now that auhal handles it

parent beb5675d
......@@ -734,24 +734,17 @@ static VLCMainMenu *_o_sharedInstance = nil;
return;
currentDevice = aout_DeviceGet(p_aout);
NSMenuItem * o_mi_tmp;
o_mi_tmp = [o_mu_device addItemWithTitle:_NS("Default") action:@selector(toggleAudioDevice:) keyEquivalent:@""];
[o_mi_tmp setTarget:self];
if (!currentDevice)
[o_mi_tmp setState:NSOnState];
for (NSUInteger x = 0; x < n; x++) {
o_mi_tmp = [o_mu_device addItemWithTitle:[NSString stringWithFormat:@"%s", names[x]] action:@selector(toggleAudioDevice:) keyEquivalent:@""];
[o_mi_tmp setTarget:self];
[o_mi_tmp setTag:[[NSString stringWithFormat:@"%s", ids[x]] intValue]];
if (currentDevice) {
if (!strcmp(ids[x], currentDevice))
[o_mi_tmp setState: NSOnState];
}
}
vlc_object_release(p_aout);
[[o_mu_device itemWithTag:[[NSString stringWithFormat:@"%s", currentDevice] intValue]] setState:NSOnState];
for (NSUInteger x = 0; x < n; x++) {
free(ids[x]);
free(names[x]);
......
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