tsdemux: Add pad-name to warning for continuity mismatch

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3141>
This commit is contained in:
Vivia Nikolaidou 2021-10-20 13:02:31 +03:00 committed by GStreamer Marge Bot
parent db2146d0ea
commit ccb0e6e435

View file

@ -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;
}
}