Commit 69e3639c authored by Wim Taymans's avatar Wim Taymans
Browse files

query: fix copy function

Copy the structure too.
parent 592b5bec
......@@ -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));
if (s) {
s = gst_structure_copy (s);
copy = gst_query_new_custom (query->type, s);
return copy;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment