add audio pid into iAudioTrackInfo
authorFelix Domke <tmbinc@elitedvb.net>
Sun, 26 Aug 2007 12:30:34 +0000 (12:30 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sun, 26 Aug 2007 12:30:34 +0000 (12:30 +0000)
lib/service/iservice.h
lib/service/servicedvb.cpp

index d65012508f5bb6c6ac5e7f719ba30e1407655119..0b03feb4a88a7e9da653f7f3f502cafed3af0b09 100644 (file)
@@ -426,9 +426,11 @@ struct iAudioTrackInfo
 #ifndef SWIG
        std::string m_description;
        std::string m_language; /* iso639 */
 #ifndef SWIG
        std::string m_description;
        std::string m_language; /* iso639 */
+       int m_pid; /* for association with the stream. */
 #endif
        std::string getDescription() { return m_description; }
        std::string getLanguage() { return m_language; }
 #endif
        std::string getDescription() { return m_description; }
        std::string getLanguage() { return m_language; }
+       int getPID() { return m_pid; }
 };
 SWIG_ALLOW_OUTPUT_SIMPLE(iAudioTrackInfo);
 
 };
 SWIG_ALLOW_OUTPUT_SIMPLE(iAudioTrackInfo);
 
index 43a78bb434d56398488af43d47d7e74e2aab31f5..9bc275e0b328c6100a15cb01051a13baa6eb1eb7 100644 (file)
@@ -1694,6 +1694,8 @@ RESULT eDVBServicePlay::getTrackInfo(struct iAudioTrackInfo &info, unsigned int
        if (i >= program.audioStreams.size())
                return -2;
        
        if (i >= program.audioStreams.size())
                return -2;
        
+       info.m_pid = program.audioStreams[i].pid;
+
        if (program.audioStreams[i].type == eDVBServicePMTHandler::audioStream::atMPEG)
                info.m_description = "MPEG";
        else if (program.audioStreams[i].type == eDVBServicePMTHandler::audioStream::atAC3)
        if (program.audioStreams[i].type == eDVBServicePMTHandler::audioStream::atMPEG)
                info.m_description = "MPEG";
        else if (program.audioStreams[i].type == eDVBServicePMTHandler::audioStream::atAC3)