element: don't use G_CONST_RETURN

It's been deprecated in newer GLib versions
This commit is contained in:
Tim-Philipp Müller 2011-07-28 12:11:36 +01:00
parent 9e308d150a
commit 388548222d
2 changed files with 2 additions and 2 deletions

View file

@ -1321,7 +1321,7 @@ gst_element_class_set_metadata (GstElementClass * klass,
*
* Returns: the metadata for @key.
*/
G_CONST_RETURN gchar *
const gchar *
gst_element_class_get_metadata (GstElementClass * klass, const gchar * key)
{
g_return_val_if_fail (GST_IS_ELEMENT_CLASS (klass), NULL);

View file

@ -675,7 +675,7 @@ void gst_element_class_set_metadata (GstElementClass
const gchar *author);
void gst_element_class_add_metadata (GstElementClass * klass,
const gchar * key, const gchar * value);
G_CONST_RETURN gchar * gst_element_class_get_metadata (GstElementClass * klass,
const gchar * gst_element_class_get_metadata (GstElementClass * klass,
const gchar * key);