waylandsink: Wait for the frame_cb to redraw and drop frames meanwhile
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Fri, 7 Mar 2014 15:25:00 +0000 (17:25 +0200)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Tue, 17 Jun 2014 11:51:24 +0000 (13:51 +0200)
commitfabc5305be5530e89ec351e9422918226185df89
tree696806d9ce5480e288ff6180dacb463a3c3c8ba6
parent51a2c694ad8dc56c5c8fb4c2f11ab7982eb54023
waylandsink: Wait for the frame_cb to redraw and drop frames meanwhile

We are not supposed to redraw until we receive a frame callback and this
is especially useful to avoid allocating too many buffers while the
window is not visible, because the compositor may not call wl_buffer.release
until the window becomes visible (ok, this is a wayland bug, but...).
ext/wayland/gstwaylandsink.c
ext/wayland/gstwaylandsink.h