Commit 14d1b6be authored by David Fuhrmann's avatar David Fuhrmann

macosx: video effects: Protect for potentially uninitialized variable

parent 54152cec
......@@ -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";
assert(psz_property);
[[VLCCoreInteraction sharedInstance] setVideoFilterProperty: psz_property forFilter: "adjust" withValue: getWidgetFloatValue(sender)];
if (sender == _adjustHueSlider)
......
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