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 d650125..0b03feb 100644 (file)
@@ -426,9 +426,11 @@ struct iAudioTrackInfo
 #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; }
+       int getPID() { return m_pid; }
 };
 SWIG_ALLOW_OUTPUT_SIMPLE(iAudioTrackInfo);
 
index 43a78bb..9bc275e 100644 (file)
@@ -1694,6 +1694,8 @@ RESULT eDVBServicePlay::getTrackInfo(struct iAudioTrackInfo &info, unsigned int
        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)