mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 05:46:36 +00:00
query: fix copy function
Copy the structure too.
This commit is contained in:
parent
592b5bec39
commit
69e3639c96
1 changed files with 6 additions and 1 deletions
|
@ -220,8 +220,13 @@ static GstQuery *
|
||||||
_gst_query_copy (GstQuery * query)
|
_gst_query_copy (GstQuery * query)
|
||||||
{
|
{
|
||||||
GstQuery *copy;
|
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;
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue