mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
decodebin: debug sticky events on exposed pads
This commit is contained in:
parent
08dd2454cd
commit
c082c06b6c
1 changed files with 11 additions and 0 deletions
|
@ -3755,6 +3755,14 @@ gst_decode_bin_post_topology_message (GstDecodeBin * dbin)
|
|||
gst_element_post_message (GST_ELEMENT (dbin), msg);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
debug_sticky_event (GstPad * pad, GstEvent ** event, gpointer user_data)
|
||||
{
|
||||
GST_DEBUG_OBJECT (pad, "sticky event %s", GST_EVENT_TYPE_NAME (*event));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/* Must only be called if the toplevel chain is complete and blocked! */
|
||||
/* Not MT-safe, call with decodebin expose lock! */
|
||||
static gboolean
|
||||
|
@ -3839,6 +3847,9 @@ gst_decode_bin_expose (GstDecodeBin * dbin)
|
|||
gst_object_set_name (GST_OBJECT (dpad), padname);
|
||||
g_free (padname);
|
||||
|
||||
gst_pad_sticky_events_foreach (GST_PAD_CAST (dpad), debug_sticky_event,
|
||||
dpad);
|
||||
|
||||
/* 2. activate and add */
|
||||
if (!dpad->exposed) {
|
||||
dpad->exposed = TRUE;
|
||||
|
|
Loading…
Reference in a new issue