vulkan/swapper: add a couple of missing g_clear_error()'s

This commit is contained in:
Matthew Waters 2019-08-23 17:07:43 +10:00
parent 542af25eb1
commit 87311d404e

View file

@ -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);
}