Commit 5d44b1a3 authored by Benjamin Gaignard's avatar Benjamin Gaignard Committed by Sebastian Dröge
Browse files

element: Improve gst_element_get_name() docs

Fixes bug #621660.
parent f10f4f16
......@@ -679,9 +679,15 @@ GType gst_element_get_type (void);
/**
* gst_element_get_name:
* @elem: a #GstElement to set the name of.
* @elem: a #GstElement to get the name of @elem.
*
* Returns a copy of the name of @elem.
* Caller should g_free() the return value after usage.
* For a nameless element, this returns NULL, which you can safely g_free()
* as well.
*
* Returns: the name of @elem. g_free() after usage. MT safe.
*
* Gets the name of the element.
*/
#define gst_element_get_name(elem) gst_object_get_name(GST_OBJECT_CAST(elem))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment