Merge pull request #7580 from jellyfin/external-audio-map
(cherry picked from commit c5212a20a314adb3cf654bc1a08f03933377e519) Signed-off-by: Joshua Boniface <joshua@boniface.me>
This commit is contained in:
parent
09ea59e1d5
commit
fe3dbabbff
|
@ -2244,7 +2244,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
{
|
{
|
||||||
if (state.AudioStream.IsExternal)
|
if (state.AudioStream.IsExternal)
|
||||||
{
|
{
|
||||||
int externalAudioMapIndex = state.SubtitleStream != null && state.SubtitleStream.IsExternal ? 2 : 1;
|
bool hasExternalGraphicsSubs = state.SubtitleStream != null && state.SubtitleStream.IsExternal && !state.SubtitleStream.IsTextSubtitleStream;
|
||||||
|
int externalAudioMapIndex = hasExternalGraphicsSubs ? 2 : 1;
|
||||||
int externalAudioStream = state.MediaSource.MediaStreams.Where(i => i.Path == state.AudioStream.Path).ToList().IndexOf(state.AudioStream);
|
int externalAudioStream = state.MediaSource.MediaStreams.Where(i => i.Path == state.AudioStream.Path).ToList().IndexOf(state.AudioStream);
|
||||||
|
|
||||||
args += string.Format(
|
args += string.Format(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user