texture: check for expected target and format
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 26 Nov 2015 09:19:32 +0000 (10:19 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 30 Nov 2015 12:26:22 +0000 (13:26 +0100)
commit1e39b59ce8c45669eb240c36e421771e8d5f7e82
treef12121d362c41684d5d3812c1729992536909d9c
parentda835c750838a50ed0708907aff84f0d0661943f
texture: check for expected target and format

gst_vaapi_texture_glx_new_wrapped() only handles a GL_TEXTURE_2D target and
formats GL_RGBA or GL_BGRA.

This patch adds a debugging verification of those values.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=753099
gst-libs/gst/vaapi/gstvaapitexture_glx.c