From db9b32c1f6e2f6d7f432c7747942b6a40ffc3847 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Fri, 18 Apr 2014 19:27:08 +0200 Subject: [PATCH] use auto lang only with more as 1 audio pid Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/3d71258d31b33449b318a8f054332dc10a348bc2 Author: Jacek Jendrzej Date: 2014-04-18 (Fri, 18 Apr 2014) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/daemonc/remotecontrol.cpp | 2 +- src/gui/movieplayer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daemonc/remotecontrol.cpp b/src/daemonc/remotecontrol.cpp index 90273c2f3..fc1036ccb 100644 --- a/src/daemonc/remotecontrol.cpp +++ b/src/daemonc/remotecontrol.cpp @@ -454,7 +454,7 @@ void CRemoteControl::processAPIDnames() const char *desc; 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 */ for(int i = 0; i < 3; i++) { for(int j = 0; j < (int) current_PIDs.APIDs.size(); j++) { diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index bf3827e8c..f42a2b361 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -1639,7 +1639,7 @@ void CMoviePlayerGui::selectAutoLang() } } } - if(g_settings.auto_lang) { + if(g_settings.auto_lang && (numpida > 1)) { int pref_idx = -1; playback->FindAllPids(apids, ac3flags, &numpida, language);