vaapipostproc: fix check for compatible src pad capsfilters.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 24 Nov 2014 13:25:33 +0000 (14:25 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 24 Nov 2014 14:28:20 +0000 (15:28 +0100)
commit0525f56ac538593171872510bdad32a30eed1e1f
tree8774084763375a1e1d26c9f1be3494e2b81ff649
parent9c888b8b8eed57acbd92f8fc840e3e6cac1b1ea0
vaapipostproc: fix check for compatible src pad capsfilters.

When an explicit output video format is selected, from an src pad
capsfilter, make sure that the downstream element actually supports
that format. In particular, fix crash with the following pipelines:
... ! vaapipostproc ! video/x-raw,format=XXX ! xvimagesink ; where
XXX is a format not supported by xvimagesink.

While doing so, also reduce the set of src pad filter caps to the
actual set of allowed src pad caps.
gst/vaapi/gstvaapipostproc.c