xvimagesink: Zero initialize mask array

Clear the stack array before setting bits to pass to
XISelectEvents(). Fixes spurious crash from an X error:

X Error of failed request:  BadValue (integer parameter out of range for operation)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3100>
This commit is contained in:
Jan Schmidt 2022-10-01 04:49:16 +10:00 committed by GStreamer Marge Bot
parent c8cf714d37
commit 6b7d4f74f2

View file

@ -1228,7 +1228,7 @@ gst_xwindow_set_event_handling (GstXWindow * window, gboolean handle_events)
#ifdef HAVE_XI2
if (context->use_xi2) {
XIEventMask mask_data;
unsigned char mask[2];
unsigned char mask[2] = { 0, };
gst_xwindow_select_touch_events (context, window);