aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-10-05 17:24:39 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-10-05 17:24:39 +0000
commit8964693920977ec8a494fea6b4aeac4bbc016b65 (patch)
tree61d28c422f760e890f1c0aa99631b35ca05c297b /lib
parentede88e3c8dfa89fd0a26138d91bd4cbf1a137c5e (diff)
downloadenigma2-8964693920977ec8a494fea6b4aeac4bbc016b65.tar.gz
enigma2-8964693920977ec8a494fea6b4aeac4bbc016b65.zip
write apid to pidcache when no value is cached
Diffstat (limited to 'lib')
-rw-r--r--lib/service/servicedvb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp
index a3450b89..9f4cc7a1 100644
--- a/lib/service/servicedvb.cpp
+++ b/lib/service/servicedvb.cpp
@@ -1786,7 +1786,8 @@ int eDVBServicePlay::selectAudioStream(int i)
anything in the best case, or destroy the default setting in
case the real default is not yet available.)
*/
- if (m_dvb_service && !m_is_pvr && (i != -1))
+ if (m_dvb_service && !m_is_pvr && ((i != -1)
+ || ((m_dvb_service->getCacheEntry(eDVBService::cAPID) == -1) && (m_dvb_service->getCacheEntry(eDVBService::cAC3PID)==-1))))
{
if (apidtype == eDVBAudio::aMPEG)
{