waylandsink: do not render twice the same buffer
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Tue, 7 Oct 2014 08:37:33 +0000 (10:37 +0200)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Sat, 11 Oct 2014 15:35:41 +0000 (17:35 +0200)
commit23bb5f53196773139e138a67a4ed2ee2dedc9aa9
tree4620e8105aa163e7afcd76617d06a870046fbb96
parent4395c02b9634b353d57a630db69b188394bb148b
waylandsink: do not render twice the same buffer

Do not try to render a buffer that is already being rendered.
This happens typically during the initial rendering stage as the first
buffer is rendered twice: first by preroll(), then by render().
This commit avoids this assertion failure:
  CRITICAL: gst_wayland_compositor_acquire_buffer: assertion
  'meta->used_by_compositor == FALSE' failed

https://bugzilla.gnome.org/show_bug.cgi?id=738069

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
ext/wayland/gstwaylandsink.c