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 17:24:37 +0000 (18:24 +0100)
commit23c6053b947f72962aec98f77da37b72d54fad9f
tree7d3d46422e4047c883291aa8648975af040f823b
parent087bf30c23ac335c482c8be2e5759d7a918cf2c6
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