wayland: fix frame_redraw callback.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 23 Jan 2013 09:10:35 +0000 (10:10 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 28 Jan 2013 15:49:43 +0000 (16:49 +0100)
commit2183eb54c12f65767e3d20d38767b96ced97b470
tree54fc7191c2b09c01a3b299666fa78925cfe5b07d
parentbd25aeb6ca3201d50bd8780c288b44b1c8b2fc44
wayland: fix frame_redraw callback.

The redraw callback needs to be attached to the surface prior to the
commit. Otherwise, the callback notifies the next surface repaint,
which is not the desired behaviour. i.e. we want to be notified for
the surface we have just filled.

Another isse was the redraw_pending was reset before the actual completion
of the frame redraw callback function, thus causing concurrency issues.
e.g. the callback could have been called again, but with a NULL buffer.
gst-libs/gst/vaapi/gstvaapiwindow_wayland.c