summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2013-04-04 14:53:32 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2013-04-04 14:53:32 +0200
commitc082c06b6c090b855740a5ff5d6c0ffc9aee554f (patch)
tree6b183c51be94f20a5d7067f1fa870abde447c86a
parent08dd2454cd6697a2f0ea678e5cd949872196c608 (diff)
decodebin: debug sticky events on exposed pads
-rw-r--r--gst/playback/gstdecodebin2.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c
index 997cc0fee..c61e4e5e3 100644
--- a/gst/playback/gstdecodebin2.c
+++ b/gst/playback/gstdecodebin2.c
@@ -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;