summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/HBJob+UIAdditions.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/HBJob+UIAdditions.m b/macosx/HBJob+UIAdditions.m
index 569f1249d..a3a3322cf 100644
--- a/macosx/HBJob+UIAdditions.m
+++ b/macosx/HBJob+UIAdditions.m
@@ -361,7 +361,7 @@ static NSDictionary *shortHeightAttr;
[attrString appendString:summary withAttributes:detailAttr];
[attrString appendString:@"\n" withAttributes:detailAttr];
}
-
+
return attrString;
}
@@ -370,7 +370,8 @@ static NSDictionary *shortHeightAttr;
NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] init];
NSMutableString *videoInfo = [NSMutableString string];
- [videoInfo appendFormat:@"Encoder: %@, ", @(hb_video_encoder_get_name(self.video.encoder))];
+ const char *encoderName = hb_video_encoder_get_name(self.video.encoder);
+ [videoInfo appendFormat:@"Encoder: %@, ", encoderName ? @(encoderName) : @"Unknown"];
[videoInfo appendString:@"Framerate: "];