*/
@property (nonatomic, readonly) HBState state;
-/**
- * Pointer to a hb_state_s struct containing the detailed state information of libhb.
- */
-@property (nonatomic, readonly) hb_state_t *hb_state;
-
/**
* Pointer to a libhb handle used by this HBCore instance.
*/
*/
@interface HBCore ()
+/// Pointer to a hb_state_s struct containing the detailed state information of libhb.
+@property (nonatomic, readonly) hb_state_t *hb_state;
+
/// Current state of HBCore.
@property (nonatomic, readwrite) HBState state;
{
// Start Stop is chapters
startStopString = (self.range.chapterStart == self.range.chapterStop) ?
- [NSString stringWithFormat:@"Chapter %d", self.range.chapterStart] :
- [NSString stringWithFormat:@"Chapters %d through %d", self.range.chapterStart, self.range.chapterStop];
+ [NSString stringWithFormat:@"Chapter %d", self.range.chapterStart + 1] :
+ [NSString stringWithFormat:@"Chapters %d through %d", self.range.chapterStart + 1, self.range.chapterStop + 1];
}
else if (self.range.type == HBRangeTypeSeconds)
{
encoderPresetInfo = [encoderPresetInfo stringByAppendingString: [NSString stringWithFormat:@" - Level: %@", self.video.level]];
}
}
- [finalString appendString: @"Encoder Options: " withAttributes:detailBoldAttr];
+ [finalString appendString: @"Video Options: " withAttributes:detailBoldAttr];
[finalString appendString: encoderPresetInfo withAttributes:detailAttr];
[finalString appendString:@"\n" withAttributes:detailAttr];
}
// Seventh Line Audio Details
- int audioDetailCount = 0;
- for (NSString *anAudioDetail in audioDetails) {
- audioDetailCount++;
- if (anAudioDetail.length) {
- [finalString appendString: [NSString stringWithFormat: @"Audio Track %d ", audioDetailCount] withAttributes: detailBoldAttr];
+ for (NSString *anAudioDetail in audioDetails)
+ {
+ if (anAudioDetail.length)
+ {
+ [finalString appendString: [NSString stringWithFormat: @"Audio: "] withAttributes: detailBoldAttr];
[finalString appendString: anAudioDetail withAttributes: detailAttr];
[finalString appendString: @"\n" withAttributes: detailAttr];
}
- (void)setVideoOptionExtra:(NSString *)videoOptionExtra
{
[_videoOptionExtra autorelease];
- _videoOptionExtra = [videoOptionExtra copy];
+ if (videoOptionExtra != nil)
+ {
+ _videoOptionExtra = [videoOptionExtra copy];
+ }
+ else
+ {
+ _videoOptionExtra = @"";
+ }
[self postChangedNotification];
}