more pid cache stuff
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 15 Aug 2005 23:52:44 +0000 (23:52 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 15 Aug 2005 23:52:44 +0000 (23:52 +0000)
lib/service/servicedvb.cpp

index 92e26cf..5618477 100644 (file)
@@ -287,6 +287,12 @@ void eDVBServicePlay::serviceEvent(int event)
                        m_decoder->setAudioPID(apid, 0);
                        m_decoder->setSyncPCR(pcrpid);
                        m_decoder->start();
                        m_decoder->setAudioPID(apid, 0);
                        m_decoder->setSyncPCR(pcrpid);
                        m_decoder->start();
+// how we can do this better?
+// update cache pid when the user changed the audio track or video track
+// TODO handling of difference audio types.. default audio types..
+                       m_dvb_service->setCachePID(eDVBService::cVPID, vpid);
+                       m_dvb_service->setCachePID(eDVBService::cAPID, apid);
+                       m_dvb_service->setCachePID(eDVBService::cPCRPID, pcrpid);
                }
                
                break;
                }
                
                break;