[vlc-commits] macosx: auto-apply brightness-threshold value in video effects panel
David Fuhrmann
git at videolan.org
Sun Jul 13 17:52:23 CEST 2014
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Jul 12 19:05:52 2014 +0200| [d23ddc933c7505d54fd9fd19040803d5b8c8f888] | committer: David Fuhrmann
macosx: auto-apply brightness-threshold value in video effects panel
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d23ddc933c7505d54fd9fd19040803d5b8c8f888
---
modules/gui/macosx/VideoEffects.m | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx/VideoEffects.m b/modules/gui/macosx/VideoEffects.m
index 707b221..a514e0c 100644
--- a/modules/gui/macosx/VideoEffects.m
+++ b/modules/gui/macosx/VideoEffects.m
@@ -796,8 +796,9 @@ static VLCVideoEffects *_o_sharedInstance = nil;
- (IBAction)enableAdjustBrightnessThreshold:(id)sender
{
+ VLCCoreInteraction *vci_si = [VLCCoreInteraction sharedInstance];
+
if (sender == o_adjust_reset_btn) {
- VLCCoreInteraction *vci_si = [VLCCoreInteraction sharedInstance];
[o_adjust_brightness_sld setFloatValue: 1.0];
[o_adjust_contrast_sld setFloatValue: 1.0];
[o_adjust_gamma_sld setFloatValue: 1.0];
@@ -814,7 +815,8 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[vci_si setVideoFilterProperty: "hue" forFilter: "adjust" integer: 0.0];
[vci_si setVideoFilterProperty: "saturation" forFilter: "adjust" float: 1.0];
} else
- config_PutInt(p_intf, "brightness-threshold", [o_adjust_brightness_ckb state]);
+ [vci_si setVideoFilterProperty: "brightness-threshold" forFilter: "adjust" boolean: [o_adjust_brightness_ckb state]];
+
}
- (IBAction)enableSharpen:(id)sender
More information about the vlc-commits
mailing list