vaapipostproc: resize if negotiated and allocation caps are different
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 15 Apr 2016 15:57:25 +0000 (17:57 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 22 Apr 2016 15:07:53 +0000 (17:07 +0200)
commite519f2ea79c4bc174c9bd495d86acaf749933705
tree2c5d045aa8bef9ba8b1a456d234b2404a9fd96ef
parent23a9a7291a88e868ff77f881a3e9b2f8d0ae8abd
vaapipostproc: resize if negotiated and allocation caps are different

Since commit 859a2b2, in vaapidecode, allocation query can be different from
the negotiated caps.

When connecting the vaapidecoder to the vaapipostprocessor, the last one will
resize the frame to the negotiated, if and only if, some other parameter is
activated to avoid the passthrough. If it is not, the surface won't be mapped
into a image. If not, the image won't be resized and the output buffer would be
mapped.

This patch will break the passthrough if the allocation query is different
from the negotiation caps, forcing the resizing.

https://bugzilla.gnome.org/show_bug.cgi?id=765095
gst/vaapi/gstvaapipostproc.c