+ }
+ else if ( m_service && !m_service->cacheEmpty() )
+ {
+ int vpid = m_service->getCachePID(eDVBService::cVPID),
+ apid_ac3 = m_service->getCachePID(eDVBService::cAPID),
+ apid_mpeg = m_service->getCachePID(eDVBService::cAC3PID),
+ pcrpid = m_service->getCachePID(eDVBService::cPCRPID),
+ cnt=0;
+ if ( vpid != -1 )
+ {
+ videoStream s;
+ s.pid = vpid;
+ program.videoStreams.push_back(s);
+ ++cnt;
+ }
+ if ( apid_ac3 != -1 )
+ {
+ audioStream s;
+ s.type = audioStream::atAC3;
+ s.pid = apid_ac3;
+ program.audioStreams.push_back(s);
+ ++cnt;
+ }
+ if ( apid_mpeg != -1 )
+ {
+ audioStream s;
+ s.type = audioStream::atMPEG;
+ s.pid = apid_mpeg;
+ program.audioStreams.push_back(s);
+ ++cnt;
+ }
+ if ( pcrpid != -1 )
+ {
+ ++cnt;
+ program.pcrPid = pcrpid;
+ }
+ if ( cnt )
+ return 0;
+ }
+ return -1;