Commit a7169248 authored by Philippe Normand's avatar Philippe Normand 🥑 Committed by GStreamer Marge Bot
Browse files

dashdemux: Log protection events on corresponding pad

GstDashDemuxStream is not a GstObject, so use its pad as associated object when
emitting log messages.

Part-of: <gstreamer/gst-plugins-bad!2392>
parent b9c92e35
......@@ -886,11 +886,12 @@ gst_dash_demux_send_content_protection_event (gpointer data, gpointer userdata)
GstBuffer *pssi;
glong pssi_len;
gchar *schemeIdUri;
if (cp->schemeIdUri == NULL)
GST_TRACE_OBJECT (stream, "check schemeIdUri %s", cp->schemeIdUri);
GST_TRACE_OBJECT (pad, "check schemeIdUri %s", cp->schemeIdUri);
/* RFC 2141 states: The leading "urn:" sequence is case-insensitive */
schemeIdUri = g_ascii_strdown (cp->schemeIdUri, -1);
if (g_str_has_prefix (schemeIdUri, "urn:uuid:")) {
......@@ -901,6 +902,8 @@ gst_dash_demux_send_content_protection_event (gpointer data, gpointer userdata)
* but some streams seem to ignore this and use upper case for the
* protection system ID */
event = gst_event_new_protection (cp->schemeIdUri + 9, pssi, "dash/mpd");
"Queueing protection event %" GST_PTR_FORMAT " on source pad", event);
gst_adaptive_demux_stream_queue_event ((GstAdaptiveDemuxStream *) stream,
gst_buffer_unref (pssi);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment