vaapisink: fix display initialization in GstVideoOverlay implementation.
authorHolger Kaelberer <hk@getslash.de>
Wed, 15 Jan 2014 09:05:45 +0000 (10:05 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 15 Jan 2014 10:07:05 +0000 (11:07 +0100)
commitf8666e2cae518c0514c3b2944e4607502f7ba350
tree651e0dc66731483ec9b7bf0030417c2ed8fe0a18
parentdd6751ed47c8c7c2d69c25cbeb2d064d8fa96d66
vaapisink: fix display initialization in GstVideoOverlay implementation.

When gst_vaapisink_video_overlay_set_window_handle() is called early,
before the pipeline has been set to PLAYING, the display has not yet
been initialized and _PLUGIN_BASE_DISPLAY_TYPE() is not yet
up-to-date. For this reason the foreign XID is not attached.

Now _ensure_display() is called earlier.

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

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst/vaapi/gstvaapisink.c