xbmc / xbmc

Kodi is an award-winning free and open source home theater/media center software and entertainment hub for digital media. With its beautiful interface and powerful skinning engine, it's available for Android, BSD, Linux, macOS, iOS, tvOS and Windows.
https://kodi.tv/
Other
18.51k stars 6.3k forks source link

Setting default audio stream for all media not working #25505

Open phunkyfish opened 3 months ago

phunkyfish commented 3 months ago

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:

Previously it was possible to set a default audio stream for all media. Using pvr.vuplus, the default is now only saved for a channel or a recording but for any new channel or recording it will default to the first stream which is Narrated (NAR) instead of the second stream which is English (eng).

Expected Behaviour

Here is a clear and concise description of what was expected to happen:

The default is correctly saved and used for all media, whether it be a channel or a recording. This was the behaviour on our old intel NUC that died. I don't know if it still behaves correctly on intel as this was the last intel device that we had.

Actual Behavior

The default only applies to the current channel or recording.

Possible Fix

To Reproduce

Steps to reproduce the behavior:

  1. Open a PVR channel where the NAR is audio stream 1, and the preferred audio stream is 2.
  2. Change the stream in audio settings
  3. Click Set as default for all media.
  4. Change to another channel or recording and the default will revert to NAR

Debuglog

The debuglog can be found here:

https://paste.kodi.tv/ukeyupehar.kodi

Screenshots

Here are some links or screenshots to help explain the problem:

Screenshot 2024-07-20 at 07 22 33 Screenshot 2024-07-20 at 07 22 47 Screenshot 2024-07-20 at 07 22 57 Screenshot 2024-07-20 at 07 23 21 Screenshot 2024-07-20 at 07 23 21 Screenshot 2024-07-20 at 07 23 32 Screenshot 2024-07-20 at 07 23 40 Screenshot 2024-07-20 at 07 23 51 Screenshot 2024-07-20 at 07 24 08

Switch to new channel or recording:

Screenshot 2024-07-20 at 07 24 24

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

Your Environment

Used Operating system:

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

phunkyfish commented 3 months ago

Sorry, just an info log added, will add a debug log shortly.

phunkyfish commented 3 months ago

Log file updated to debug log

phunkyfish commented 1 month ago

I see the referenced issue, but this did at some point work cause I used it a lot in the past, specially with pvr.vuplus where the NAR track is always the audio stream 0.

Does anyone have a steer as to where these values are stored? I would like to fix this myself but having spent some time with the code I can't easily figure out how this is supposed to work. @notspiff and @Montellese, maybe you have a clue. Any starting point would be appreciated.