diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-03-15 13:48:30 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-03-15 13:48:30 +0100 |
commit | f089c3cceb3e4dee038991e6db4274cb251b4108 (patch) | |
tree | 1abb4267de1fd87cc09d36ba222cdecfe7dc987a /gst | |
parent | f4b43b6c125f153b4d2e89a4fce75114cbdcb56c (diff) |
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.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/gstpad.c | 14 |
1 files changed, 14 insertions, 0 deletions
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); |