mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vkqueue: unly unref the context query if it succeeds
This commit is contained in:
parent
f351f3a759
commit
c568d1a673
1 changed files with 2 additions and 2 deletions
|
@ -266,12 +266,12 @@ gst_vulkan_queue_run_context_query (GstElement * element,
|
|||
gst_query_parse_context (query, &context);
|
||||
if (context)
|
||||
gst_context_get_vulkan_queue (context, queue);
|
||||
|
||||
gst_query_unref (query);
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (element, "found queue %p", *queue);
|
||||
|
||||
gst_query_unref (query);
|
||||
|
||||
if (*queue)
|
||||
return TRUE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue