mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
use auto lang only with more as 1 audio pid
This commit is contained in:
@@ -454,7 +454,7 @@ void CRemoteControl::processAPIDnames()
|
|||||||
const char *desc;
|
const char *desc;
|
||||||
char lang[4];
|
char lang[4];
|
||||||
|
|
||||||
if(g_settings.auto_lang) {
|
if(g_settings.auto_lang && (current_PIDs.APIDs.size() > 1)) {
|
||||||
/* first we check prefs to find pid according to pref index */
|
/* first we check prefs to find pid according to pref index */
|
||||||
for(int i = 0; i < 3; i++) {
|
for(int i = 0; i < 3; i++) {
|
||||||
for(int j = 0; j < (int) current_PIDs.APIDs.size(); j++) {
|
for(int j = 0; j < (int) current_PIDs.APIDs.size(); j++) {
|
||||||
|
@@ -1639,7 +1639,7 @@ void CMoviePlayerGui::selectAutoLang()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(g_settings.auto_lang) {
|
if(g_settings.auto_lang && (numpida > 1)) {
|
||||||
int pref_idx = -1;
|
int pref_idx = -1;
|
||||||
|
|
||||||
playback->FindAllPids(apids, ac3flags, &numpida, language);
|
playback->FindAllPids(apids, ac3flags, &numpida, language);
|
||||||
|
Reference in New Issue
Block a user