mirror of
https://github.com/jellyfin/jellyfin-desktop.git
synced 2026-10-26 16:45:24 +00:00
Fall back to the first audio track when DefaultAudioStreamIndex is undefined (#1165)
Live TV omits audioStreamIndex causing DefaultAudioStreamIndex to be undefined, which previously mapped to -1 and disabled audio in the MPV backend. Fall back to the first embedded audio track so Live TV plays with audio.
This commit is contained in:
1 file changed
+1
-1
@@ -318,7 +318,7 @@
|
||||
// Handle audio
|
||||
const audioRelIndex = this._audioTrackIndexToSetOnPlaying != null && this._audioTrackIndexToSetOnPlaying >= 0
|
||||
? this.getRelativeIndexByType(streams, this._audioTrackIndexToSetOnPlaying, 'Audio')
|
||||
: -1;
|
||||
: 1;
|
||||
|
||||
// Handle subtitle - check for external first
|
||||
let subtitleParam;
|
||||
|
||||
Reference in new issue
Block a user