From: Jaroslav Kysela Date: Thu, 31 Aug 2017 16:52:52 +0000 (+0200) Subject: transcoder: another fix for #4564 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c93283c933ccb85f8aa7271be4d71bf3aa1e41b6;p=thirdparty%2Ftvheadend.git transcoder: another fix for #4564 --- diff --git a/src/transcoding/transcode/transcoder.c b/src/transcoding/transcode/transcoder.c index 618e6f6e6..af19e9c1c 100644 --- a/src/transcoding/transcode/transcoder.c +++ b/src/transcoding/transcode/transcoder.c @@ -118,7 +118,7 @@ tvh_transcoder_start(TVHTranscoder *self, tvh_ss_t *ss_src) break; case AVMEDIA_TYPE_AUDIO: aprofile = (TVHAudioCodecProfile *)self->profiles[media_type]; - if (avprofile && + if (aprofile && lang_match(aprofile->language1, ssc, &audio_pindex[0], i) == 0 && lang_match(aprofile->language2, ssc, &audio_pindex[1], i) == 0) lang_match(aprofile->language3, ssc, &audio_pindex[2], i);