]> git.sesse.net Git - vlc/commit
wayland/shell: Fix race for wnd->display.wl.
authorMatthias Treydte <mt@waldheinz.de>
Mon, 19 Jan 2015 15:24:57 +0000 (16:24 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 20 Jan 2015 05:45:11 +0000 (07:45 +0200)
commita217626ed1053bb488680dc7487ec14cef834609
tree7e6df2bff911cd1ff8681326564ee2fba901358a
parent2226f5177325b751b016a359f42a9529fc307e16
wayland/shell: Fix race for wnd->display.wl.

The Wayland background thread dereferences said variable, but is started
before the value is written there. Occasionally the thread would win
the race and segfault in wl_display_get_fd.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/video_output/wayland/shell_surface.c