summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/HBFilters.m30
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];
}