- add PMT pid to program info
authorFelix Domke <tmbinc@elitedvb.net>
Wed, 26 Oct 2005 23:19:52 +0000 (23:19 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Wed, 26 Oct 2005 23:19:52 +0000 (23:19 +0000)
lib/dvb/pmt.cpp
lib/dvb/pmt.h

index 68b1f6c..538264d 100644 (file)
@@ -96,6 +96,7 @@ int eDVBServicePMTHandler::getProgramInfo(struct program &program)
        program.videoStreams.clear();
        program.audioStreams.clear();
        program.pcrPid = -1;
        program.videoStreams.clear();
        program.audioStreams.clear();
        program.pcrPid = -1;
+       program.pmtPid = m_pmt_pid < 0x1fff ? m_pmt_pid : -1;
 
        if (!m_PMT.getCurrent(ptr))
        {
 
        if (!m_PMT.getCurrent(ptr))
        {
index beafc5a..b917383 100644 (file)
@@ -103,6 +103,7 @@ public:
                std::vector<audioStream> audioStreams;
                // ca info
                int pcrPid;
                std::vector<audioStream> audioStreams;
                // ca info
                int pcrPid;
+               int pmtPid;
        };
        
        int getProgramInfo(struct program &program);
        };
        
        int getProgramInfo(struct program &program);