]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
packet: trace - print also PCR
authorJaroslav Kysela <perex@perex.cz>
Wed, 10 May 2017 14:34:10 +0000 (16:34 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 10 May 2017 14:34:10 +0000 (16:34 +0200)
src/packet.c

index 08b59ba76a27a7fc8c4839aac39ac7bb19b32297..0d465c73cdd7a0faea5156a0f5a49ac5cdc73f7a 100644 (file)
@@ -153,7 +153,7 @@ void
 pkt_trace_(const char *file, int line, int subsys, th_pkt_t *pkt,
            const char *fmt, ...)
 {
-  char buf[512], _dts[22], _pts[22], _type[2];
+  char buf[512], _pcr[22], _dts[22], _pts[22], _type[2];
   va_list args;
 
   va_start(args, fmt);
@@ -165,13 +165,14 @@ pkt_trace_(const char *file, int line, int subsys, th_pkt_t *pkt,
   }
   snprintf(buf, sizeof(buf),
            "%s%spkt stream %d %s%s%s"
-           " dts %s pts %s"
+           " pcr %s dts %s pts %s"
            " dur %d len %zu err %i%s",
            fmt ? fmt : "",
            fmt ? " (" : "",
            pkt->pkt_componentindex,
            streaming_component_type2txt(pkt->pkt_type),
            _type[0] ? " type " : "", _type,
+           pts_to_string(pkt->pkt_pcr, _pcr),
            pts_to_string(pkt->pkt_dts, _dts),
            pts_to_string(pkt->pkt_pts, _pts),
            pkt->pkt_duration,