wayland: don't poll if there are no pending frames
authorMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 13 Apr 2018 07:28:53 +0000 (09:28 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 18 Apr 2018 11:57:53 +0000 (13:57 +0200)
commit1f71b5a57d4dff4cb6ad21d6a55eef77ed6a3dbe
tree941a74fa462cc1339af377fd2df0a0a269b0a0d1
parente19570a8b61942d723d019e7241ede764bba0f47
wayland: don't poll if there are no pending frames

Otherwise the following poll may not return for an arbitrary amount of
time. This can happen if another wayland event queue has flushed and read
our events.

https://bugzilla.gnome.org/show_bug.cgi?id=795224
gst-libs/gst/vaapi/gstvaapiwindow_wayland.c