• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Wrong audio track selected by default - Jellyfin for Kodi

     
    • 0 Vote(s) - 0 Average

    Wrong audio track selected by default - Jellyfin for Kodi

    fezster
    Offline

    Junior Member

    Posts: 9
    Threads: 1
    Joined: 2024 Jan
    Reputation: 1
    Country:United Kingdom
    #3
    2025-02-25, 09:38 PM
    I worked out what's causing this. It's a race condition in player.py.

    If report_playback() -> detect_audio_subs() is called first, the current audio track is defaulted and this is then stored. Later, set_audio_subs() is called and this same audio track is applied. This is what should happen and, I guess, is expected to happen.

    On the FireStick, though, this never happens. The set_audio_subs() is called first - which means the DefaultAudioStreamIndex returned by Jellyfin is used. The logic is then not applied correctly and the wrong audio track is applied. Later, report_playback is called, but by then the audio track has already been set incorrectly and so it never corrects itself.

    I think it can be written to avoid the race condition. Will open an issue and see if those who wrote it have more thoughts on why it was done like this.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Wrong audio track selected by default - Jellyfin for Kodi - by Flashwit - 2024-12-14, 06:12 PM
    RE: Wrong audio track selected by default - Jellyfin for Kodi - by fezster - 2025-02-21, 05:09 PM
    RE: Wrong audio track selected by default - Jellyfin for Kodi - by fezster - 2025-02-25, 09:38 PM
    RE: Wrong audio track selected by default - Jellyfin for Kodi - by fezster - 2025-02-26, 07:26 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode