Commit 57f9ff5a authored by Felix Paul Kühne's avatar Felix Paul Kühne

tvOS: fix compilation warning

parent 384d26df
Pipeline #47 passed with stage
in 2 minutes and 6 seconds
......@@ -135,7 +135,12 @@
if (row >= audioTrackIndexes.count) {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
BOOL bValue = ![defaults boolForKey:kVLCSettingUseSPDIF];
/* we are using private API of VLCKit here, nothing to warning about */
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
[[VLCPlaybackController sharedInstance].mediaPlayer performSelector:@selector(setPassthroughAudio:) withObject:@(bValue)];
#pragma clang diagnostic pop
[defaults setBool:bValue forKey:kVLCSettingUseSPDIF];
[defaults synchronize];
/* restart the audio output */
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