From f089c3cceb3e4dee038991e6db4274cb251b4108 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 15 Mar 2010 13:48:30 +0100 Subject: pad: set a good name on the task of the pad Use the element:pad names to configure a good name for the pad task. --- gst/gstpad.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gst/gstpad.c b/gst/gstpad.c index 7b8bb89324..9a0e6c3c3b 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -5144,6 +5144,20 @@ do_stream_status (GstPad * pad, GstStreamStatusType type, GstMessage *message; GValue value = { 0 }; + if (type == GST_STREAM_STATUS_TYPE_ENTER) { + gchar *tname, *ename, *pname; + + /* create a good task name */ + ename = gst_element_get_name (parent); + pname = gst_pad_get_name (pad); + tname = g_strdup_printf ("%s:%s", ename, pname); + g_free (ename); + g_free (pname); + + gst_object_set_name (GST_OBJECT_CAST (task), tname); + g_free (tname); + } + message = gst_message_new_stream_status (GST_OBJECT_CAST (pad), type, parent); -- cgit v1.2.3