mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +00:00
urihandler: make _get_uri() return a copy
For thread-safety.
This commit is contained in:
parent
34e3e26467
commit
35df64357f
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue