diff options
author | Edward Hervey <edward@centricular.com> | 2015-04-17 15:32:56 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2015-04-17 16:21:28 +0200 |
commit | ed27244c032d19caf7951b5aca6071877d8851f6 (patch) | |
tree | 9046bb3ec65eb01b3b7dd3fbd62a5b6eb6efb0bc /gst/mpegtsdemux | |
parent | b80ae9cdcd0f7d4f26ea7d70046f29a38b72c3d8 (diff) | |
download | gstreamer-plugins-bad-ed27244c032d19caf7951b5aca6071877d8851f6.tar.gz |
mpegtspacketizer: Unify debug statements
Use 0x%04x for PIDs
Diffstat (limited to 'gst/mpegtsdemux')
-rw-r--r-- | gst/mpegtsdemux/mpegtspacketizer.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gst/mpegtsdemux/mpegtspacketizer.c b/gst/mpegtsdemux/mpegtspacketizer.c index f4d3a5822..edf837a84 100644 --- a/gst/mpegtsdemux/mpegtspacketizer.c +++ b/gst/mpegtsdemux/mpegtspacketizer.c @@ -347,24 +347,25 @@ mpegts_packetizer_parse_adaptation_field_control (MpegTSPacketizer2 * if ((packet->scram_afc_cc & 0x30) == 0x20) { /* no payload, adaptation field of 183 bytes */ if (length > 183) { - GST_WARNING ("PID %d afc == 0x%02x and length %d > 183", + GST_WARNING ("PID 0x%04x afc == 0x%02x and length %d > 183", packet->pid, packet->scram_afc_cc & 0x30, length); return FALSE; } if (length != 183) { - GST_WARNING ("PID %d afc == 0x%02x and length %d != 183", + GST_WARNING ("PID 0x%04x afc == 0x%02x and length %d != 183", packet->pid, packet->scram_afc_cc & 0x30, length); GST_MEMDUMP ("Unknown payload", packet->data + length, packet->data_end - packet->data - length); } } else if (length > 182) { - GST_WARNING ("PID %d afc == 0x%02x and length %d > 182", + GST_WARNING ("PID 0x%04x afc == 0x%02x and length %d > 182", packet->pid, packet->scram_afc_cc & 0x30, length); return FALSE; } if (packet->data + length > packet->data_end) { - GST_DEBUG ("PID %d afc length %d overflows the buffer current %d max %d", + GST_DEBUG + ("PID 0x%04x afc length %d overflows the buffer current %d max %d", packet->pid, length, (gint) (packet->data - packet->data_start), (gint) (packet->data_end - packet->data_start)); return FALSE; @@ -638,7 +639,7 @@ mpegts_packetizer_remove_stream (MpegTSPacketizer2 * packetizer, gint16 pid) { MpegTSPacketizerStream *stream = packetizer->streams[pid]; if (stream) { - GST_INFO ("Removing stream for PID %d", pid); + GST_INFO ("Removing stream for PID 0x%04x", pid); mpegts_packetizer_stream_free (stream); packetizer->streams[pid] = NULL; } |