summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-12-31 15:35:37 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-12-31 15:35:37 +0100
commit3d7338de5a2e93431296ecfed30821e007d3419b (patch)
tree6c658162ac3b3dd0b1d6777efc0598a670cba5a9 /remux.c
parenta8260204c3e66fe12173f7232feb90ece61a59e8 (diff)
downloadvdr-3d7338de5a2e93431296ecfed30821e007d3419b.tar.gz
vdr-3d7338de5a2e93431296ecfed30821e007d3419b.tar.bz2
cPatPmtParser now also stores the audio stream types
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/remux.c b/remux.c
index 712ce3b7..c8610327 100644
--- a/remux.c
+++ b/remux.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remux.c 2.36 2009/12/29 15:46:12 kls Exp $
+ * $Id: remux.c 2.37 2009/12/31 15:35:37 kls Exp $
*/
#include "remux.h"
@@ -489,6 +489,8 @@ void cPatPmtParser::ParsePmt(const uchar *Data, int Length)
apids[0] = 0;
dpids[0] = 0;
spids[0] = 0;
+ atypes[0] = 0;
+ dtypes[0] = 0;
SI::PMT::Stream stream;
for (SI::Loop::Iterator it; Pmt.streamLoop.getNext(stream, it); ) {
dbgpatpmt(" stream type = %02X, pid = %d", stream.getStreamType(), stream.getPid());
@@ -504,6 +506,7 @@ void cPatPmtParser::ParsePmt(const uchar *Data, int Length)
{
if (NumApids < MAXAPIDS) {
apids[NumApids] = stream.getPid();
+ atypes[NumApids] = stream.getStreamType();
*alangs[NumApids] = 0;
SI::Descriptor *d;
for (SI::Loop::Iterator it; (d = stream.streamDescriptors.getNext(it)); ) {
@@ -593,6 +596,7 @@ void cPatPmtParser::ParsePmt(const uchar *Data, int Length)
if (dpid) {
if (NumDpids < MAXDPIDS) {
dpids[NumDpids] = dpid;
+ dtypes[NumDpids] = stream.getStreamType();
strn0cpy(dlangs[NumDpids], lang, sizeof(dlangs[NumDpids]));
if (updatePrimaryDevice)
cDevice::PrimaryDevice()->SetAvailableTrack(ttDolby, NumDpids, dpid, lang);