mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
vulkaninstance: add missing precondition to _open()
This commit is contained in:
parent
4ae9a9dc91
commit
52e3db3371
1 changed files with 2 additions and 0 deletions
|
@ -182,6 +182,8 @@ gst_vulkan_instance_open (GstVulkanInstance * instance, GError ** error)
|
|||
gchar **enabled_layers;
|
||||
VkResult err;
|
||||
|
||||
g_return_val_if_fail (GST_IS_VULKAN_INSTANCE (instance), FALSE);
|
||||
|
||||
GST_OBJECT_LOCK (instance);
|
||||
if (instance->priv->opened) {
|
||||
GST_OBJECT_UNLOCK (instance);
|
||||
|
|
Loading…
Reference in a new issue