[vlc-commits] [Git][videolan/vlc][master] 2 commits: screen/wayland: init all known fields to NULL
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Oct 21 11:09:27 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
04d3c313 by Steve Lhomme at 2023-10-21T10:49:29+00:00
screen/wayland: init all known fields to NULL
Fixes a missing initializer warnings. This is similar to how it's done
for wl_pointer_listener.
- - - - -
e7152acf by Steve Lhomme at 2023-10-21T10:49:29+00:00
wayland: input: init axis_relative_direction to NULL
Fixes a missing initializer warning for axis_relative_direction. We currently
enforce version = 5 for the wl_seat version, and it's available starting
with wl_pointer version 8, which means that we don't need to set a
function handler for now.
Similar to 19bd8d2783a033460d421d20254534d4274ed743
- - - - -
2 changed files:
- modules/access/screen/wayland.c
- modules/video_output/wayland/input.c
Changes:
=====================================
modules/access/screen/wayland.c
=====================================
@@ -153,6 +153,12 @@ const struct wl_output_listener output_cbs =
output_mode_cb,
NULL,
NULL,
+#ifdef WL_OUTPUT_NAME_SINCE_VERSION
+ NULL,
+#endif
+#ifdef WL_OUTPUT_DESCRIPTION_SINCE_VERSION
+ NULL,
+#endif
};
static void screenshooter_done_cb(void *data,
=====================================
modules/video_output/wayland/input.c
=====================================
@@ -210,6 +210,9 @@ static const struct wl_pointer_listener pointer_cbs =
#ifdef WL_POINTER_AXIS_VALUE120_SINCE_VERSION
NULL, /* We don't support axis_value120 for now */
#endif
+#ifdef WL_POINTER_AXIS_RELATIVE_DIRECTION_SINCE_VERSION
+ NULL, /* We don't support axis_relative_direction for now */
+#endif
};
static void pointer_create(struct seat_data *sd)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/cc618d5c4bdc5a54ed2bf94de77742cbe72628f8...e7152acfbea2bf43d2db2dfc37a3ae8c6649e9d9
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/cc618d5c4bdc5a54ed2bf94de77742cbe72628f8...e7152acfbea2bf43d2db2dfc37a3ae8c6649e9d9
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list