diff options
author | phintuka <phintuka> | 2010-05-21 13:02:24 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-05-21 13:02:24 +0000 |
commit | aa42de19cc07a04e2ac32dd30185e088a36f3893 (patch) | |
tree | ff7962f9ec2ce5c38ff17c968b38a859b362abcd | |
parent | 581a3d41cbfde1873fdf7121c623a0ad2ddf9439 (diff) | |
download | xineliboutput-aa42de19cc07a04e2ac32dd30185e088a36f3893.tar.gz xineliboutput-aa42de19cc07a04e2ac32dd30185e088a36f3893.tar.bz2 |
Fixed LOGPMT/LOGPCR definitions when logging not enabled
-rw-r--r-- | tools/ts.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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; } |