mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
vkwindow: fix build error on i386
Vulkan handles are either pointers (64-bit) or 64-bit integer handles (32-bit). Cast the type in failure cases. vkwindow.c:229:561: error: return makes integer from pointer without a cast [-Werror=int-conversion] vkwindow.c:231:194: error: return makes integer from pointer without a cast [-Werror=int-conversion] https://bugzilla.gnome.org/show_bug.cgi?id=777979
This commit is contained in:
parent
df612f7eb1
commit
d7bb3b5542
1 changed files with 2 additions and 2 deletions
|
@ -226,9 +226,9 @@ gst_vulkan_window_get_surface (GstVulkanWindow * window, GError ** error)
|
|||
{
|
||||
GstVulkanWindowClass *klass;
|
||||
|
||||
g_return_val_if_fail (GST_IS_VULKAN_WINDOW (window), NULL);
|
||||
g_return_val_if_fail (GST_IS_VULKAN_WINDOW (window), (VkSurfaceKHR) 0);
|
||||
klass = GST_VULKAN_WINDOW_GET_CLASS (window);
|
||||
g_return_val_if_fail (klass->get_surface != NULL, NULL);
|
||||
g_return_val_if_fail (klass->get_surface != NULL, (VkSurfaceKHR) 0);
|
||||
|
||||
return klass->get_surface (window, error);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue