summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-11-13 09:11:43 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-11-13 09:11:43 +0100
commite24aa0aa1adf4c60539be41170145b58cf9c8683 (patch)
treea2e2aa00934b25d44aa9cb673cd10c0c130f2b17 /device.c
parentbc06fdf4149cc019ee95cbcc150f7627bb7c14b5 (diff)
downloadvdr-e24aa0aa1adf4c60539be41170145b58cf9c8683.tar.gz
vdr-e24aa0aa1adf4c60539be41170145b58cf9c8683.tar.bz2
Using PATPID macro
Diffstat (limited to 'device.c')
-rw-r--r--device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/device.c b/device.c
index aa93a8e5..766253a1 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 2.68 2012/09/20 09:32:26 kls Exp $
+ * $Id: device.c 2.69 2012/11/13 09:11:43 kls Exp $
*/
#include "device.h"
@@ -1147,7 +1147,7 @@ void cDevice::StillPicture(const uchar *Data, int Length)
int Size = 0;
while (Length >= TS_SIZE) {
int Pid = TsPid(Data);
- if (Pid == 0)
+ if (Pid == PATPID)
patPmtParser.ParsePat(Data, TS_SIZE);
else if (Pid == patPmtParser.PmtPid())
patPmtParser.ParsePmt(Data, TS_SIZE);
@@ -1484,7 +1484,7 @@ int cDevice::PlayTs(const uchar *Data, int Length, bool VideoOnly)
if (TsHasPayload(Data)) { // silently ignore TS packets w/o payload
int PayloadOffset = TsPayloadOffset(Data);
if (PayloadOffset < TS_SIZE) {
- if (Pid == 0)
+ if (Pid == PATPID)
patPmtParser.ParsePat(Data, TS_SIZE);
else if (Pid == patPmtParser.PmtPid())
patPmtParser.ParsePmt(Data, TS_SIZE);