diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-10-12 14:29:46 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-10-12 14:29:46 +0200 |
commit | ec5795bda2aae521c81e101ec109b8bc74e3e19d (patch) | |
tree | c113e0544ca27bd9f7c9e633b711142fbc556058 /remux.c | |
parent | 371b9be00bf3a6e301e9709bb9afd4294ea7a1dc (diff) | |
download | vdr-ec5795bda2aae521c81e101ec109b8bc74e3e19d.tar.gz vdr-ec5795bda2aae521c81e101ec109b8bc74e3e19d.tar.bz2 |
Reactivated full handling of second audio PID (even in 'Transfer Mode')
Diffstat (limited to 'remux.c')
-rw-r--r-- | remux.c | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -8,7 +8,7 @@ * the Linux DVB driver's 'tuxplayer' example and were rewritten to suit * VDR's needs. * - * $Id: remux.c 1.11 2002/08/11 11:48:34 kls Exp $ + * $Id: remux.c 1.12 2002/10/12 13:33:54 kls Exp $ */ /* The calling interface of the 'cRemux::Process()' function is defined @@ -482,17 +482,9 @@ int cRemux::ScanVideoPacket(const uchar *Data, int Count, int Offset, uchar &Pic return -1; } -void cRemux::SetAudioPid(int APid) -{ - aPid1 = APid; - vTS2PES->Clear(); - aTS2PES1->Clear(); - resultCount = resultDelivered = 0; -} - #define TS_SYNC_BYTE 0x47 -const uchar *cRemux::Process(const uchar *Data, int &Count, int &Result, uchar *PictureType) +uchar *cRemux::Process(const uchar *Data, int &Count, int &Result, uchar *PictureType) { uchar dummyPictureType; if (!PictureType) @@ -611,7 +603,7 @@ XXX*/ if (synced) { *PictureType = pt; Result = l; - const uchar *p = resultBuffer + resultDelivered; + uchar *p = resultBuffer + resultDelivered; resultDelivered += l; return p; } @@ -629,7 +621,7 @@ XXX*/ return NULL; // no useful data found, wait for more if (synced) { Result = l; - const uchar *p = resultBuffer + resultDelivered; + uchar *p = resultBuffer + resultDelivered; resultDelivered += l; return p; } |