summaryrefslogtreecommitdiffstats
path: root/macosx/HBTitle.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-01-26 18:22:16 +0100
committerDamiano Galassi <[email protected]>2016-01-26 18:22:16 +0100
commitfa95126fe78249de6c9d42c5a5f99210ad76c9a2 (patch)
tree369e0384851d92a91b1bb277983ab3238f810da9 /macosx/HBTitle.m
parent1cac193f4108f228f6551d7b39d2728f150e7172 (diff)
MacGui: switch the defaults languages to view based tables, and a little project cleanup. Remove to unneeded casts.
Diffstat (limited to 'macosx/HBTitle.m')
-rw-r--r--macosx/HBTitle.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBTitle.m b/macosx/HBTitle.m
index eb0ab088d..a0cd592d4 100644
--- a/macosx/HBTitle.m
+++ b/macosx/HBTitle.m
@@ -173,7 +173,7 @@ extern NSString *keySubTrackType;
// Initialize the audio list of available audio tracks from this title
for (int i = 0; i < count; i++)
{
- hb_audio_config_t *audio = (hb_audio_config_t *) hb_list_audio_config_item(list, i);
+ hb_audio_config_t *audio = hb_list_audio_config_item(list, i);
[tracks addObject: @{keyAudioTrackIndex: @(i + 1),
keyAudioTrackName: [NSString stringWithFormat: @"%d: %@", i, @(audio->lang.description)],
keyAudioInputBitrate: @(audio->in.bitrate / 1000),
@@ -200,7 +200,7 @@ extern NSString *keySubTrackType;
for (int i = 0; i < count; i++)
{
- hb_subtitle_t *subtitle = (hb_subtitle_t *) hb_list_item(self.hb_title->list_subtitle, i);
+ hb_subtitle_t *subtitle = hb_list_item(self.hb_title->list_subtitle, i);
// Human-readable representation of subtitle->source
NSString *bitmapOrText = subtitle->format == PICTURESUB ? @"Bitmap" : @"Text";