libs: window: wayland: wait for configure before committing the first buffer
authorMichael Olbrich <m.olbrich@pengutronix.de>
Mon, 6 Jul 2020 07:59:40 +0000 (09:59 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 27 Jul 2020 15:02:19 +0000 (15:02 +0000)
commit9ccb0c57fa86b8b71b6185a4cf75ee957a6881f4
tree1e033ced2d1339e6e3ceb75a8ff981ca0d45c0a7
parenta73e6b7dac00789b6eb829479cb8d7080f4c6528
libs: window: wayland: wait for configure before committing the first buffer

Committing the first buffer for a surface must not be done before
ack_configure() has been sent for the xdg_surface.

With weston, the commit will fail with "error 3: xdg_surface has never been
configured".

Wait in gst_vaapi_window_wayland_show() until configure is done to avoid
this.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/346>
gst-libs/gst/vaapi/gstvaapiwindow_wayland.c