vlc | branch: master | David Fuhrmann <[email protected]> | Sun Dec 10 19:30:32 2017 +0100| [14d1b6be4dce81ede52d56fd021f438ab3c24aba] | committer: David Fuhrmann
macosx: video effects: Protect for potentially uninitialized variable > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=14d1b6be4dce81ede52d56fd021f438ab3c24aba --- modules/gui/macosx/VLCVideoEffectsWindowController.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/gui/macosx/VLCVideoEffectsWindowController.m b/modules/gui/macosx/VLCVideoEffectsWindowController.m index 7eb59cc697..98ded961f1 100644 --- a/modules/gui/macosx/VLCVideoEffectsWindowController.m +++ b/modules/gui/macosx/VLCVideoEffectsWindowController.m @@ -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) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
