Commit 7a2ebf25 authored by David Fuhrmann's avatar David Fuhrmann

macosx: video effects: Protect for potentially uninitialized variable

(cherry picked from commit 14d1b6be)
Signed-off-by: default avatarDavid Fuhrmann <>
parent fcb980a2
......@@ -909,8 +909,7 @@
- (IBAction)adjustSliderChanged:(id)sender
char const *psz_property;
char const *psz_property = nil;
if (sender == _adjustBrightnessSlider)
psz_property = "brightness";
else if (sender == _adjustContrastSlider)
......@@ -921,6 +920,8 @@
psz_property = "hue";
else if (sender == _adjustSaturationSlider)
psz_property = "saturation";
[[VLCCoreInteraction sharedInstance] setVideoFilterProperty: psz_property forFilter: "adjust" withValue: getWidgetFloatValue(sender)];
if (sender == _adjustHueSlider)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment