Commit 87311d40 authored by Matthew Waters's avatar Matthew Waters 🐨

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

parent 542af25e
Pipeline #59472 failed with stages
in 55 minutes and 49 seconds
......@@ -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);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment