mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
vkdevice: only unref the gstcontext query if non-NULL
Fixes an assertion in make -C tests/check generic/states.check
This commit is contained in:
parent
d37a2f13ee
commit
1b3de55eb1
1 changed files with 2 additions and 2 deletions
|
@ -544,12 +544,12 @@ gst_vulkan_device_run_context_query (GstElement * element,
|
||||||
gst_query_parse_context (query, &context);
|
gst_query_parse_context (query, &context);
|
||||||
if (context)
|
if (context)
|
||||||
gst_context_get_vulkan_device (context, device);
|
gst_context_get_vulkan_device (context, device);
|
||||||
|
|
||||||
|
gst_query_unref (query);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (element, "found device %p", *device);
|
GST_DEBUG_OBJECT (element, "found device %p", *device);
|
||||||
|
|
||||||
gst_query_unref (query);
|
|
||||||
|
|
||||||
if (*device)
|
if (*device)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue