decodebin: debug sticky events on exposed pads

This commit is contained in:
Wim Taymans 2013-04-04 14:53:32 +02:00
parent 08dd2454cd
commit c082c06b6c

View file

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