diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-03-06 12:01:17 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-03-06 12:01:17 +0100 |
commit | ab9af4cea16b6d3875e60b7809c02f3b6794e6b4 (patch) | |
tree | c7f2d476e2d010372b1bb8bd94b36cd5d6f026dd /pat.c | |
parent | 3e09f8565dde0e362549a1896352753483f6615c (diff) | |
download | vdr-ab9af4cea16b6d3875e60b7809c02f3b6794e6b4.tar.gz vdr-ab9af4cea16b6d3875e60b7809c02f3b6794e6b4.tar.bz2 |
Added support for ATSC devices
Diffstat (limited to 'pat.c')
-rw-r--r-- | pat.c | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: pat.c 2.7 2010/01/01 15:40:05 kls Exp $ + * $Id: pat.c 2.8 2010/03/06 12:00:30 kls Exp $ */ #include "pat.h" @@ -447,6 +447,29 @@ void cPatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length } } break; + case 0x81: // STREAMTYPE_USER_PRIVATE + if (Channel->IsAtsc()) { // ATSC AC-3 + char lang[MAXLANGCODE1] = { 0 }; + SI::Descriptor *d; + for (SI::Loop::Iterator it; (d = stream.streamDescriptors.getNext(it)); ) { + switch (d->getDescriptorTag()) { + case SI::ISO639LanguageDescriptorTag: { + SI::ISO639LanguageDescriptor *ld = (SI::ISO639LanguageDescriptor *)d; + strn0cpy(lang, I18nNormalizeLanguageCode(ld->languageCode), MAXLANGCODE1); + } + break; + default: ; + } + delete d; + } + if (NumDpids < MAXDPIDS) { + Dpids[NumDpids] = esPid; + strn0cpy(DLangs[NumDpids], lang, MAXLANGCODE1); + NumDpids++; + } + ProcessCaDescriptors = true; + } + break; default: ;//printf("PID: %5d %5d %2d %3d %3d\n", pmt.getServiceId(), stream.getPid(), stream.getStreamType(), pmt.getVersionNumber(), Channel->Number()); } if (ProcessCaDescriptors) { |