diff options
author | Damiano Galassi <[email protected]> | 2019-08-13 10:27:05 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-08-13 10:27:05 +0200 |
commit | f2a619679551fd988c4e28bf68108f174d64fb3d (patch) | |
tree | 3b7b294d44d5afd20a864c2b9d2f3676f7a4749a /macosx/HBJob+HBJobConversion.m | |
parent | 5b3c3c620855130c7bcd47685ad69a765e0cfd7b (diff) |
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.
Diffstat (limited to 'macosx/HBJob+HBJobConversion.m')
-rw-r--r-- | macosx/HBJob+HBJobConversion.m | 8 |
1 files changed, 4 insertions, 4 deletions
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; |