summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordynaflash <[email protected]>2013-01-27 22:30:39 +0000
committerdynaflash <[email protected]>2013-01-27 22:30:39 +0000
commit75c283023e5062be852c6a76e7d36824620e44fe (patch)
treec8d81a9a9bddaee5ad4abd4c046026386e814669 /macosx
parentcd34885671f1056a84b04213677f3da396941def (diff)
MacGui: Fix a null placeholder upon launch in the x264 unparse string.
- Patch by sanmarcos Thanks! - Explained here https://reviews.handbrake.fr/r/426/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5213 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Controller.m13
1 files changed, 10 insertions, 3 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m
index 735172963..567f00aad 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -5586,9 +5586,16 @@ the user is using "Custom" settings by determining the sender*/
h264_level,
width, height);
// update the text field
- [fDisplayX264PresetsUnparseTextField setStringValue:
- [NSString stringWithFormat:@"x264 Unparse: %s",
- fX264PresetsUnparsedUTF8String]];
+ if (fX264PresetsUnparsedUTF8String != NULL)
+ {
+ [fDisplayX264PresetsUnparseTextField setStringValue:
+ [NSString stringWithFormat:@"x264 Unparse: %s",
+ fX264PresetsUnparsedUTF8String]];
+ }
+ else
+ {
+ [fDisplayX264PresetsUnparseTextField setStringValue:@"x264 Unparse:"];
+ }
}
#pragma mark -