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:
592b5be
)
query: fix copy function
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 14 Mar 2012 23:24:40 +0000
(
00:24
+0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 15 Mar 2012 12:42:17 +0000
(13:42 +0100)
Copy the structure too.
gst/gstquery.c
patch
|
blob
|
history
diff --git
a/gst/gstquery.c
b/gst/gstquery.c
index
6af3fd0
..
ec2796e
100644
(file)
--- a/
gst/gstquery.c
+++ b/
gst/gstquery.c
@@
-220,8
+220,13
@@
static GstQuery *
_gst_query_copy (GstQuery * query)
{
GstQuery *copy;
+ GstStructure *s;
- copy = gst_query_new_custom (query->type, GST_QUERY_STRUCTURE (query));
+ s = GST_QUERY_STRUCTURE (query);
+ if (s) {
+ s = gst_structure_copy (s);
+ }
+ copy = gst_query_new_custom (query->type, s);
return copy;
}