mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
vkwindow_xcb: Make the visible private field a guint
This field is used to store gbooleans (which are ints) but if it's a :1 bit depth assigning ints to it changes it's value as the only valid values are -1 and 0. Make it a guint instead so the cast would be correct. ``` ../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/xcb/gstvkwindow_xcb.c:151:25: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] window_xcb->visible = TRUE; ``` Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5432>
This commit is contained in:
parent
2193022d67
commit
9f3b8c9366
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ struct _GstVulkanWindowXCB
|
|||
/* X window */
|
||||
xcb_window_t win_id;
|
||||
|
||||
gint visible :1;
|
||||
guint visible :1;
|
||||
|
||||
PFN_vkCreateXcbSurfaceKHR CreateXcbSurface;
|
||||
PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR GetPhysicalDeviceXcbPresentationSupport;
|
||||
|
|
Loading…
Reference in a new issue