From f2a619679551fd988c4e28bf68108f174d64fb3d Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 13 Aug 2019 10:27:05 +0200 Subject: MacGui: convert the last usage of NSDictionary to a proper class, fix external subtitles tracks when sandboxed. Add initial support to the model to store the track title. --- macosx/HBJob+HBJobConversion.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'macosx/HBJob+HBJobConversion.m') diff --git a/macosx/HBJob+HBJobConversion.m b/macosx/HBJob+HBJobConversion.m index d8417d338..a58e1333b 100644 --- a/macosx/HBJob+HBJobConversion.m +++ b/macosx/HBJob+HBJobConversion.m @@ -357,10 +357,10 @@ hb_audio_config_t *audio = (hb_audio_config_t *)calloc(1, sizeof(*audio)); hb_audio_config_init(audio); - NSDictionary *inputTrack = self.audio.sourceTracks[audioTrack.sourceTrackIdx]; + HBTitleAudioTrack *inputTrack = self.audio.sourceTracks[audioTrack.sourceTrackIdx]; int sampleRateToUse = (audioTrack.sampleRate == 0 ? - [inputTrack[keyAudioInputSampleRate] intValue] : + inputTrack.sampleRate : audioTrack.sampleRate); audio->in.track = (int)audioTrack.sourceTrackIdx - 1; @@ -386,8 +386,8 @@ audio->out.gain = 0; } - if (hb_audio_can_apply_drc([inputTrack[keyAudioInputCodec] intValue], - [inputTrack[keyAudioInputCodecParam] intValue], + if (hb_audio_can_apply_drc(inputTrack.codec, + inputTrack.codecParam, audioTrack.encoder)) { audio->out.dynamic_range_compression = audioTrack.drc; -- cgit v1.2.3