vaapidecode: add guards for disabled codecs.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 4 May 2015 12:24:43 +0000 (14:24 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 4 May 2015 12:27:23 +0000 (14:27 +0200)
commit5993b0d60fcd162a33283f20b4c54b4185c25f64
treec6eb168d60b01747dbe54438156eb5108e12268f
parent81d6b42420a001a68089d7fed42edd4013ddba3e
vaapidecode: add guards for disabled codecs.

Fix link when building plugin elements without HEVC support. e.g. don't
try to call into gst_vaapi_decoder_h265_set_alignment() if there is no
support HEVC enabled in libgstvaapi.

Also, drop disabled codecs from static template caps. Add the missing
HEVC static template caps into vaapidecodebin too.
gst/vaapi/gstvaapidecode.c
gst/vaapi/gstvaapidecodebin.c