mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
dataurisrc: Make get_uri() threadsafe
https://bugzilla.gnome.org/show_bug.cgi?id=735861
This commit is contained in:
parent
f5e73d2808
commit
76e099e5b9
1 changed files with 5 additions and 2 deletions
|
@ -302,9 +302,12 @@ static gchar *
|
|||
gst_data_uri_src_get_uri (GstURIHandler * handler)
|
||||
{
|
||||
GstDataURISrc *src = GST_DATA_URI_SRC (handler);
|
||||
gchar *src_uri = NULL;
|
||||
|
||||
/* FIXME: make thread-safe */
|
||||
return g_strdup (src->uri);
|
||||
GST_OBJECT_LOCK (src);
|
||||
src_uri = g_strdup (src->uri);
|
||||
GST_OBJECT_UNLOCK (src);
|
||||
return src_uri;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue