From 75c283023e5062be852c6a76e7d36824620e44fe Mon Sep 17 00:00:00 2001 From: dynaflash Date: Sun, 27 Jan 2013 22:30:39 +0000 Subject: 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 --- macosx/Controller.m | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'macosx') 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 - -- cgit v1.2.3