gl/wayland: fix wayland event source burning CPU
authorLucas Stach <l.stach@pengutronix.de>
Tue, 28 May 2019 15:43:25 +0000 (17:43 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 11 Aug 2019 08:35:53 +0000 (09:35 +0100)
commit467656df0df9e6ade3808b90a4a4f9c549c14338
treee8d231fa42874e857a79cdbfa2676cc8ec9628b4
parent1bfe5fd618d016ec53872d5a0591d78fd06eac58
gl/wayland: fix wayland event source burning CPU

Commit c71dd72b "gl/wayland: fix glib mainloop integration" was overeager
in removing the poll result test from the check function. This caused
dispatch to be called even if no new events are available on the
Wayland connection, which in turn would wake up the glib mainloop,
causing effectively a tight loop without ever blocking on the poll.

Fixes #603
gst-libs/gst/gl/wayland/wayland_event_source.c