mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
vulkansink: Fix null pointer exception
context query might happen before creating swapper.
This commit is contained in:
parent
a1584b6f99
commit
b8ef3801bc
1 changed files with 2 additions and 1 deletions
|
@ -231,7 +231,8 @@ gst_vulkan_sink_query (GstBaseSink * bsink, GstQuery * query)
|
||||||
if (gst_vulkan_handle_context_query (GST_ELEMENT (vk_sink), query,
|
if (gst_vulkan_handle_context_query (GST_ELEMENT (vk_sink), query,
|
||||||
vk_sink->display, vk_sink->instance, vk_sink->device))
|
vk_sink->display, vk_sink->instance, vk_sink->device))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
if (gst_vulkan_queue_handle_context_query (GST_ELEMENT (vk_sink), query,
|
if (vk_sink->swapper &&
|
||||||
|
gst_vulkan_queue_handle_context_query (GST_ELEMENT (vk_sink), query,
|
||||||
vk_sink->swapper->queue))
|
vk_sink->swapper->queue))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue