diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-12-25 15:26:16 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-12-25 15:26:16 +0100 |
commit | c1b01bdc61b275bfab721620be131ee441703aeb (patch) | |
tree | 9694e3fddf41d1f4b64599e72665e31e6997df50 /device.c | |
parent | 3124c7598e843b2fa38116dc0a2e336606209aff (diff) | |
download | vdr-c1b01bdc61b275bfab721620be131ee441703aeb.tar.gz vdr-c1b01bdc61b275bfab721620be131ee441703aeb.tar.bz2 |
cDevice::AddPid() now stores the stream type of the given pid
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 2.28 2009/12/24 11:13:53 kls Exp $ + * $Id: device.c 2.29 2009/12/25 15:24:02 kls Exp $ */ #include "device.h" @@ -413,7 +413,7 @@ bool cDevice::HasPid(int Pid) const return false; } -bool cDevice::AddPid(int Pid, ePidType PidType) +bool cDevice::AddPid(int Pid, ePidType PidType, int StreamType) { if (Pid || PidType == ptPcr) { int n = -1; @@ -460,6 +460,7 @@ bool cDevice::AddPid(int Pid, ePidType PidType) } if (n >= 0) { pidHandles[n].pid = Pid; + pidHandles[n].streamType = StreamType; pidHandles[n].used = 1; PRINTPIDS("C"); if (!SetPid(&pidHandles[n], n, true)) { |