diff options
author | Philippe Normand <philn@igalia.com> | 2021-07-08 14:46:11 +0100 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-07-08 18:48:41 +0000 |
commit | a7169248315885cf59a729fd583d7c527531cafd (patch) | |
tree | 289dd9c9af6312957272114cfeb93b6a03165e90 | |
parent | b9c92e35d608f6c0451066c4b451795683b1615f (diff) | |
download | gstreamer-plugins-bad-a7169248315885cf59a729fd583d7c527531cafd.tar.gz |
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2392>
-rw-r--r-- | ext/dash/gstdashdemux.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 93980b040..b26a0a835 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -886,11 +886,12 @@ gst_dash_demux_send_content_protection_event (gpointer data, gpointer userdata) GstBuffer *pssi; glong pssi_len; gchar *schemeIdUri; + GstPad *pad = GST_ADAPTIVE_DEMUX_STREAM_PAD (stream); if (cp->schemeIdUri == NULL) return; - 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"); + GST_LOG_OBJECT (pad, + "Queueing protection event %" GST_PTR_FORMAT " on source pad", event); gst_adaptive_demux_stream_queue_event ((GstAdaptiveDemuxStream *) stream, event); gst_buffer_unref (pssi); |