From aa42de19cc07a04e2ac32dd30185e088a36f3893 Mon Sep 17 00:00:00 2001 From: phintuka Date: Fri, 21 May 2010 13:02:24 +0000 Subject: Fixed LOGPMT/LOGPCR definitions when logging not enabled --- tools/ts.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'tools') diff --git a/tools/ts.c b/tools/ts.c index 4ce97297..393049ab 100644 --- a/tools/ts.c +++ b/tools/ts.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: ts.c,v 1.25 2010-05-16 11:44:32 phintuka Exp $ + * $Id: ts.c,v 1.26 2010-05-21 13:02:24 phintuka Exp $ * */ @@ -28,13 +28,13 @@ #ifdef LOG_PMT # define LOGPMT LOGMSG #else -# define LOGPMT(x...) +# define LOGPMT(x...) do {} while (0) #endif #ifdef LOG_PCR # define LOGPCR LOGMSG #else -# define LOGPCR(x...) +# define LOGPCR(x...) do {} while (0) #endif @@ -483,10 +483,9 @@ int ts_parse_pmt (pmt_data_t *pmt, uint program_no, const uint8_t *pkt) if (pmt->pcr_pid == INVALID_PID) { LOGPMT("parse_pmt: pcr pid 0x%.4x", pid); - } - else { + } else { LOGPMT("parse_pmt: pcr pid changed 0x%.4x", pid); - } + } pmt->pcr_pid = pid; } -- cgit v1.2.3