projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5e73d2
)
dataurisrc: Make get_uri() threadsafe
author
Vineeth T M
<vineeth.tm@samsung.com>
Tue, 2 Sep 2014 06:41:44 +0000
(12:11 +0530)
committer
Sebastian Dröge
<sebastian@centricular.com>
Tue, 2 Sep 2014 06:56:41 +0000
(09:56 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=735861
gst/dataurisrc/gstdataurisrc.c
patch
|
blob
|
history
diff --git
a/gst/dataurisrc/gstdataurisrc.c
b/gst/dataurisrc/gstdataurisrc.c
index
ba8b9a3
..
1fde36d
100644
(file)
--- a/
gst/dataurisrc/gstdataurisrc.c
+++ b/
gst/dataurisrc/gstdataurisrc.c
@@
-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