plugins: fix check for direct-rendering support.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 9 Oct 2013 08:06:40 +0000 (10:06 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 9 Oct 2013 16:30:06 +0000 (18:30 +0200)
commit847e3efb4dd6e29e90ba2897a5fd029f4d67cb50
treef7f99d260a1ef3e2e225e33ae379210f248f2b71
parentf361d4a23d38ae180cdfbcaea9abddc7dc74aeca
plugins: fix check for direct-rendering support.

Fix check for direct-rendering if the creation of VA surfaces with
an explicit pixel format is not support, e.g. VA-API < 0.34.0, and
that we tried to allocate a VA surface based on the corresponding
chroma type. i.e. in that particular case, we have to make sure that
the derived image has actually the expected format.
gst/vaapi/gstvaapivideomemory.c