va: basedec: Improve the decide_allocation().
authorHe Junyan <junyan.he@intel.com>
Mon, 16 Nov 2020 16:18:22 +0000 (00:18 +0800)
committerHe Junyan <junyan.he@intel.com>
Mon, 16 Nov 2020 17:21:54 +0000 (01:21 +0800)
commit7a8ac900109a76a4520145133959275afb99c2b4
treee3bd4be186cc41c69ac91d90d695c84d7280432a
parent672a30d0def1f02b6911892ddd4dfc854e1727d3
va: basedec: Improve the decide_allocation().

In decide_allocation(), we now just use the other_pool for frames
copy when the src caps is raw. This can make the logic a little
clear. There is no need for us to check the alignment and video
meta again.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1711>
sys/va/gstvabasedec.c
sys/va/gstvabasedec.h