diff --git a/ext/vulkan/vkswapper.c b/ext/vulkan/vkswapper.c index 1865ebef67..2fd653375d 100644 --- a/ext/vulkan/vkswapper.c +++ b/ext/vulkan/vkswapper.c @@ -1058,8 +1058,10 @@ _on_window_draw (GstVulkanWindow * window, GstVulkanSwapper * swapper) GError *error = NULL; RENDER_LOCK (swapper); - if (!swapper->current_buffer) + if (!swapper->current_buffer) { + RENDER_UNLOCK (swapper); return; + } /* TODO: perform some rate limiting of the number of redraw events */ if (!_render_buffer_unlocked (swapper, swapper->current_buffer, &error))