From ccb0e6e43585d4715cccc57872de2058b499bf84 Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Wed, 20 Oct 2021 13:02:31 +0300 Subject: [PATCH] tsdemux: Add pad-name to warning for continuity mismatch Part-of: --- subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c b/subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c index dc59a40..8adefeb 100644 --- a/subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c +++ b/subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c @@ -2738,13 +2738,16 @@ gst_ts_demux_queue_data (GstTSDemux * demux, TSDemuxStream * stream, } stream->state = PENDING_PACKET_HEADER; } else { + gchar *pad_name = gst_pad_get_name (stream->pad); GST_ELEMENT_WARNING_WITH_DETAILS (demux, STREAM, DEMUX, ("CONTINUITY: Mismatch packet %d, stream %d (pid 0x%04x)", cc, stream->continuity_counter, stream->stream.pid), (NULL), ("warning-type", G_TYPE_STRING, "continuity-mismatch", "packet", G_TYPE_INT, cc, "stream", G_TYPE_INT, stream->continuity_counter, - "pid", G_TYPE_UINT, stream->stream.pid, NULL)); + "pid", G_TYPE_UINT, stream->stream.pid, + "pad-name", G_TYPE_STRING, pad_name, NULL)); + g_free (pad_name); stream->state = PENDING_PACKET_DISCONT; } } -- 2.7.4