diff options
author | ritsuka <[email protected]> | 2015-02-08 19:23:03 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-02-08 19:23:03 +0000 |
commit | 4eacce21c3197701b45ee58e46c98d3d9b6cfcc4 (patch) | |
tree | 12fed34c5a942f85f6ced526e78eaf622dd289d3 /macosx/HBFilters.m | |
parent | cd089d45e8b6a7f60699f493ee250707b1485007 (diff) |
MacGui: guard against nil denoise values.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6886 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBFilters.m')
-rw-r--r-- | macosx/HBFilters.m | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/macosx/HBFilters.m b/macosx/HBFilters.m index 0e7d77840..4fd83b771 100644 --- a/macosx/HBFilters.m +++ b/macosx/HBFilters.m @@ -143,7 +143,15 @@ NSDictionary *_HandBrake_nlmeansTunesDict; - (void)setDenoise:(NSString *)denoise { [_denoise autorelease]; - _denoise = [denoise copy]; + + if (denoise) + { + _denoise = [denoise copy]; + } + else + { + _denoise = @""; + } [self postChangedNotification]; } @@ -151,7 +159,15 @@ NSDictionary *_HandBrake_nlmeansTunesDict; - (void)setDenoisePreset:(NSString *)denoisePreset { [_denoisePreset autorelease]; - _denoisePreset = [denoisePreset copy]; + + if (denoisePreset) + { + _denoisePreset = [denoisePreset copy]; + } + else + { + _denoisePreset = @"medium"; + } [self postChangedNotification]; } @@ -160,7 +176,15 @@ NSDictionary *_HandBrake_nlmeansTunesDict; - (void)setDenoiseTune:(NSString *)denoiseTune { [_denoiseTune autorelease]; - _denoiseTune = [denoiseTune copy]; + + if (denoiseTune) + { + _denoiseTune = [denoiseTune copy]; + } + else + { + _denoiseTune = @"none"; + } [self postChangedNotification]; } |