mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
vulkan/swapper: add a couple of missing g_clear_error()'s
This commit is contained in:
parent
542af25eb1
commit
87311d404e
1 changed files with 2 additions and 0 deletions
|
@ -276,6 +276,7 @@ _choose_queue (GstVulkanDevice * device, GstVulkanQueue * queue,
|
|||
"GetPhysicalDeviceSurfaceSupport") < 0) {
|
||||
GST_DEBUG_OBJECT (data->swapper,
|
||||
"surface not supported by the physical device: %s", error->message);
|
||||
g_clear_error (&error);
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -1357,6 +1358,7 @@ _on_window_resize (GstVulkanWindow * window, guint width, guint height,
|
|||
if (!_swapchain_resize (swapper, &error))
|
||||
GST_ERROR_OBJECT (swapper, "Failed to resize swapchain: %s",
|
||||
error->message);
|
||||
g_clear_error (&error);
|
||||
}
|
||||
RENDER_UNLOCK (swapper);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue