diff options
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/Controller.m | 13 |
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 - |