mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
cDevice::AddPid() now stores the stream type of the given pid
This commit is contained in:
parent
3124c7598e
commit
c1b01bdc61
@ -1361,6 +1361,7 @@ Andreas Regel <andreas.regel@gmx.de>
|
|||||||
for fixing handling numeric keys in the channel display after switching channel
|
for fixing handling numeric keys in the channel display after switching channel
|
||||||
groups
|
groups
|
||||||
for adding some missing 'const' statements to cBitmap
|
for adding some missing 'const' statements to cBitmap
|
||||||
|
for making cDevice::AddPid() store the stream type of the given pid
|
||||||
|
|
||||||
Thomas Bergwinkl <Thomas.Bergwinkl@vr-web.de>
|
Thomas Bergwinkl <Thomas.Bergwinkl@vr-web.de>
|
||||||
for fixing the validity check for channel IDs, because some providers use TIDs
|
for fixing the validity check for channel IDs, because some providers use TIDs
|
||||||
|
4
HISTORY
4
HISTORY
@ -6197,7 +6197,7 @@ Video Disk Recorder Revision History
|
|||||||
- Fixed the default value for "Pause key handling" in the MANUAL (reported by
|
- Fixed the default value for "Pause key handling" in the MANUAL (reported by
|
||||||
Diego Pierotto).
|
Diego Pierotto).
|
||||||
|
|
||||||
2009-12-24: Version 1.7.11
|
2009-12-25: Version 1.7.11
|
||||||
|
|
||||||
- Fixed resetting the file size when regenerating the index file.
|
- Fixed resetting the file size when regenerating the index file.
|
||||||
- The new function cDevice::PatPmtParser() can be used in derived devices to access
|
- The new function cDevice::PatPmtParser() can be used in derived devices to access
|
||||||
@ -6230,3 +6230,5 @@ Video Disk Recorder Revision History
|
|||||||
- cPatFilter::Process() now only stores CA descriptors for video and audio pids
|
- cPatFilter::Process() now only stores CA descriptors for video and audio pids
|
||||||
(thanks to Francesco Saverio Schiavarelli for reporting a problem with channels
|
(thanks to Francesco Saverio Schiavarelli for reporting a problem with channels
|
||||||
that have some encrypted components that VDR doesn't use).
|
that have some encrypted components that VDR doesn't use).
|
||||||
|
- cDevice::AddPid() now stores the stream type of the given pid (thanks to Andreas
|
||||||
|
Regel).
|
||||||
|
5
device.c
5
device.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "device.h"
|
||||||
@ -413,7 +413,7 @@ bool cDevice::HasPid(int Pid) const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cDevice::AddPid(int Pid, ePidType PidType)
|
bool cDevice::AddPid(int Pid, ePidType PidType, int StreamType)
|
||||||
{
|
{
|
||||||
if (Pid || PidType == ptPcr) {
|
if (Pid || PidType == ptPcr) {
|
||||||
int n = -1;
|
int n = -1;
|
||||||
@ -460,6 +460,7 @@ bool cDevice::AddPid(int Pid, ePidType PidType)
|
|||||||
}
|
}
|
||||||
if (n >= 0) {
|
if (n >= 0) {
|
||||||
pidHandles[n].pid = Pid;
|
pidHandles[n].pid = Pid;
|
||||||
|
pidHandles[n].streamType = StreamType;
|
||||||
pidHandles[n].used = 1;
|
pidHandles[n].used = 1;
|
||||||
PRINTPIDS("C");
|
PRINTPIDS("C");
|
||||||
if (!SetPid(&pidHandles[n], n, true)) {
|
if (!SetPid(&pidHandles[n], n, true)) {
|
||||||
|
7
device.h
7
device.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: device.h 2.17 2009/12/04 15:03:16 kls Exp $
|
* $Id: device.h 2.18 2009/12/25 15:09:18 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DEVICE_H
|
#ifndef __DEVICE_H
|
||||||
@ -277,14 +277,15 @@ protected:
|
|||||||
class cPidHandle {
|
class cPidHandle {
|
||||||
public:
|
public:
|
||||||
int pid;
|
int pid;
|
||||||
|
int streamType;
|
||||||
int handle;
|
int handle;
|
||||||
int used;
|
int used;
|
||||||
cPidHandle(void) { pid = used = 0; handle = -1; }
|
cPidHandle(void) { pid = streamType = used = 0; handle = -1; }
|
||||||
};
|
};
|
||||||
cPidHandle pidHandles[MAXPIDHANDLES];
|
cPidHandle pidHandles[MAXPIDHANDLES];
|
||||||
bool HasPid(int Pid) const;
|
bool HasPid(int Pid) const;
|
||||||
///< Returns true if this device is currently receiving the given PID.
|
///< Returns true if this device is currently receiving the given PID.
|
||||||
bool AddPid(int Pid, ePidType PidType = ptOther);
|
bool AddPid(int Pid, ePidType PidType = ptOther, int StreamType = 0);
|
||||||
///< Adds a PID to the set of PIDs this device shall receive.
|
///< Adds a PID to the set of PIDs this device shall receive.
|
||||||
void DelPid(int Pid, ePidType PidType = ptOther);
|
void DelPid(int Pid, ePidType PidType = ptOther);
|
||||||
///< Deletes a PID from the set of PIDs this device shall receive.
|
///< Deletes a PID from the set of PIDs this device shall receive.
|
||||||
|
Loading…
Reference in New Issue
Block a user