window: fix GLX window initialization.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 27 May 2013 13:59:08 +0000 (15:59 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 27 May 2013 15:21:10 +0000 (17:21 +0200)
commit382542c74797b52b4c665c0b66a3f36a68fadd7a
tree0c190562b08d3ebce1e78208edc812be7a4f717b
parentb1e5dfab96ac9cb1fdc50aa5a7176680c4f453e6
window: fix GLX window initialization.

Make sure to create the GLX context once the window object has completed
its creation. Since gl_resize() relies on the newly created window size,
then we cannot simply overload the GstVaapiWindowClass::create() hook.
So, we just call into gst_vaapi_window_glx_ensure_context() once the
window object is created in the gst_vaapi_window_glx_new*() functions.
gst-libs/gst/vaapi/gstvaapiwindow_glx.c