Hi
This patch adds the possibility to have the correct language AC3 stream if PreferAC3 is false and there are no MPEG-streams available.
I have the setting "Prefer AC-3 sound" set to false for several reasons. When there are several MPEG streams available, the TVPlugin chooses the correct stream based on language preferences. This works as expected. However, Eurosport HD does not have any MPEG streams, but instead has four AC3 streams with different languages. Right now the TVPlugin fails to find the correct language, and since PreferAC3 is false, it just sets the default language to stream 0 - Finnish. Since I am swedish, it makes it hard to understand
The patch gets the index of the correct AC3 stream, and keeps it. If PreferAC3 is false and the plugin can't set the correct MPEG language, it uses the index of the correct AC3 stream instead of stream 0. And Voila - Swedish is heard automagically.
The patch is made against TVPlugin git 1.2.0.142.
This patch adds the possibility to have the correct language AC3 stream if PreferAC3 is false and there are no MPEG-streams available.
I have the setting "Prefer AC-3 sound" set to false for several reasons. When there are several MPEG streams available, the TVPlugin chooses the correct stream based on language preferences. This works as expected. However, Eurosport HD does not have any MPEG streams, but instead has four AC3 streams with different languages. Right now the TVPlugin fails to find the correct language, and since PreferAC3 is false, it just sets the default language to stream 0 - Finnish. Since I am swedish, it makes it hard to understand
The patch gets the index of the correct AC3 stream, and keeps it. If PreferAC3 is false and the plugin can't set the correct MPEG language, it uses the index of the correct AC3 stream instead of stream 0. And Voila - Swedish is heard automagically.
The patch is made against TVPlugin git 1.2.0.142.