aboutsummaryrefslogtreecommitdiff
path: root/lib/service
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-08-26 12:30:34 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-08-26 12:30:34 +0000
commitea64b36cb3a13ff7908c4cdb920f547aa4efb407 (patch)
tree8302dfd68ab8e0d463df4901ced73a87458e6c26 /lib/service
parent4c4eb6e44cfd920cf26155ec7303441c27e5ab31 (diff)
downloadenigma2-ea64b36cb3a13ff7908c4cdb920f547aa4efb407.tar.gz
enigma2-ea64b36cb3a13ff7908c4cdb920f547aa4efb407.zip
add audio pid into iAudioTrackInfo
Diffstat (limited to 'lib/service')
-rw-r--r--lib/service/iservice.h2
-rw-r--r--lib/service/servicedvb.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/service/iservice.h b/lib/service/iservice.h
index d6501250..0b03feb4 100644
--- a/lib/service/iservice.h
+++ b/lib/service/iservice.h
@@ -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);
diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp
index 43a78bb4..9bc275e0 100644
--- a/lib/service/servicedvb.cpp
+++ b/lib/service/servicedvb.cpp
@@ -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)