mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
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:
parent
c8cf714d37
commit
6b7d4f74f2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue