va: basedec: Do not use allocator and pool from other display.
authorHe Junyan <junyan.he@intel.com>
Fri, 4 Nov 2022 09:08:12 +0000 (17:08 +0800)
committerHe Junyan <junyan.he@intel.com>
Sat, 5 Nov 2022 05:39:34 +0000 (13:39 +0800)
commita8330686cb13a6e3acff4d9e91014e98f64d0de1
treeb997f346729b81f4092063426432f8ae16d37ccc
parent3875c420f7412e0457c8c4812ea45c4a19c276cd
va: basedec: Do not use allocator and pool from other display.

The command line such as:
  gst-launch-1.0 -vf filesrc location=1.264 ! h264parse !
  vah264dec ! varenderD129postproc ! fakesink
The decoder here gets the allocation proposal from the vpp which is
on another GPU device. The allocator and pool belong to other display
and should not be used in the decoder.

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1167
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3322>
subprojects/gst-plugins-bad/sys/va/gstvabasedec.c