[PR #13813] [CLOSED] Fix wrong audio track selected when using instant play #13719

Closed
opened 2026-02-07 07:17:58 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/13813
Author: @timminator
Created: 3/31/2025
Status: Closed

Base: masterHead: fix-wrong-audio-track-using-instant-play


📝 Commits (1)

  • 18f12df Fix wrong audio track selected when using instant play

📊 Changes

1 file changed (+8 additions, -2 deletions)

View changed files

📝 MediaBrowser.Model/Dlna/StreamBuilder.cs (+8 -2)

📄 Description

When using "instant play" described in #13774 Jellyfin Web/JMP do not specify an audioindex in their request. This causes Jellyfin to decide on an audiotrack by the candidateaudiostreams logic in StreamBuilder.cs, which is not taking any user or last played preferences into account. The issue is also more widespread than described in Issue #13774. It also selects the wrong track when you have for example 2 english tracks. If you played it the last time for example with track 2 it will switch to track 1 when using instant play. This is not specific to the default track flag.

Changes
The candidateAudioStreams logic is no longer applied when the playlistitem has already an AudioStreamIndex.

Fixes #13774


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/13813 **Author:** [@timminator](https://github.com/timminator) **Created:** 3/31/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix-wrong-audio-track-using-instant-play` --- ### 📝 Commits (1) - [`18f12df`](https://github.com/jellyfin/jellyfin/commit/18f12dfb88e0b4874060b530a097f8ebbc7aafe8) Fix wrong audio track selected when using instant play ### 📊 Changes **1 file changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.Model/Dlna/StreamBuilder.cs` (+8 -2) </details> ### 📄 Description When using "instant play" described in #13774 Jellyfin Web/JMP do not specify an audioindex in their request. This causes Jellyfin to decide on an audiotrack by the candidateaudiostreams logic in StreamBuilder.cs, which is not taking any user or last played preferences into account. The issue is also more widespread than described in Issue #13774. It also selects the wrong track when you have for example 2 english tracks. If you played it the last time for example with track 2 it will switch to track 1 when using instant play. This is not specific to the default track flag. **Changes** The candidateAudioStreams logic is no longer applied when the playlistitem has already an AudioStreamIndex. Fixes #13774 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:17:58 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13719