From: Tim-Philipp Müller Date: Sun, 13 Nov 2011 15:51:44 +0000 (+0000) Subject: urihandler: make _get_uri() return a copy X-Git-Tag: RELEASE-0.11.2~454 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35df64357fd102c91f59459c0577cf5bedd46b86;p=platform%2Fupstream%2Fgstreamer.git urihandler: make _get_uri() return a copy For thread-safety. --- diff --git a/gst/gsturi.c b/gst/gsturi.c index 2a027f9..c987872 100644 --- a/gst/gsturi.c +++ b/gst/gsturi.c @@ -669,11 +669,11 @@ gst_uri_handler_get_protocols (GstURIHandler * handler) * Returns NULL if there are no URI currently handled. The * returned string must not be modified or freed. */ -const gchar * +gchar * gst_uri_handler_get_uri (GstURIHandler * handler) { GstURIHandlerInterface *iface; - const gchar *ret; + gchar *ret; g_return_val_if_fail (GST_IS_URI_HANDLER (handler), NULL); diff --git a/gst/gsturi.h b/gst/gsturi.h index 5068729..b06204e 100644 --- a/gst/gsturi.h +++ b/gst/gsturi.h @@ -87,7 +87,7 @@ struct _GstURIHandlerInterface { gchar ** (* get_protocols) (GType type); /* using the interface */ - const gchar * (* get_uri) (GstURIHandler * handler); + gchar * (* get_uri) (GstURIHandler * handler); gboolean (* set_uri) (GstURIHandler * handler, const gchar * uri); }; @@ -117,7 +117,7 @@ GType gst_uri_handler_get_type (void); guint gst_uri_handler_get_uri_type (GstURIHandler * handler); gchar ** gst_uri_handler_get_protocols (GstURIHandler * handler); -const gchar * gst_uri_handler_get_uri (GstURIHandler * handler); +gchar * gst_uri_handler_get_uri (GstURIHandler * handler); gboolean gst_uri_handler_set_uri (GstURIHandler * handler, const gchar * uri);