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 <dfuhrmann@videolan.org>
parent fcb980a2
...@@ -909,8 +909,7 @@ ...@@ -909,8 +909,7 @@
- (IBAction)adjustSliderChanged:(id)sender - (IBAction)adjustSliderChanged:(id)sender
{ {
char const *psz_property; char const *psz_property = nil;
if (sender == _adjustBrightnessSlider) if (sender == _adjustBrightnessSlider)
psz_property = "brightness"; psz_property = "brightness";
else if (sender == _adjustContrastSlider) else if (sender == _adjustContrastSlider)
...@@ -921,6 +920,8 @@ ...@@ -921,6 +920,8 @@
psz_property = "hue"; psz_property = "hue";
else if (sender == _adjustSaturationSlider) else if (sender == _adjustSaturationSlider)
psz_property = "saturation"; psz_property = "saturation";
assert(psz_property);
[[VLCCoreInteraction sharedInstance] setVideoFilterProperty: psz_property forFilter: "adjust" withValue: getWidgetFloatValue(sender)]; [[VLCCoreInteraction sharedInstance] setVideoFilterProperty: psz_property forFilter: "adjust" withValue: getWidgetFloatValue(sender)];
if (sender == _adjustHueSlider) 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