write apid to pidcache when no value is cached
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 5 Oct 2007 17:24:39 +0000 (17:24 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 5 Oct 2007 17:24:39 +0000 (17:24 +0000)
lib/service/servicedvb.cpp

index a3450b8..9f4cc7a 100644 (file)
@@ -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)
                {