vaapidecode: always reset decoder on ::set_format().
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 15 Jan 2015 15:19:59 +0000 (16:19 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 15 Jan 2015 16:13:52 +0000 (17:13 +0100)
commit0777f357aa43365c73399d121bc27bdb971d0e61
treeb97ff7fa614a5485d9d03f8c1e63aabef802c6dc
parent09dcb1e0f755683cfac69a296f8e459d32a23009
vaapidecode: always reset decoder on ::set_format().

Split GstVideoDecoder::set_format() handler to first update the sink
pad caps and reset the active VA decoder instance based on those, and
then update the src pad caps whenever possible, e.g. when the caps
specify a valid video resolution.
gst/vaapi/gstvaapidecode.c