vaapivideobufferpool: always update/release the underlying surface proxy
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 22 Jan 2020 17:50:36 +0000 (18:50 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 24 Jan 2020 09:10:44 +0000 (09:10 +0000)
commit89f202ea2ec9d72d46aa0ee7f077f71e0eb290d6
treec2d8f5adc1a9da8c7583d679f65bf62437cca5b2
parent21dd66b5e4106fd075e13826eb7999fc4ca81f0c
vaapivideobufferpool: always update/release the underlying surface proxy

gst_vaapi_video_buffer_pool_reset_buffer() is called when the sink
releases the last reference on an exported DMA buffer. This should
release the underlying surface proxy. To avoid releasing the wrong
surface due to a stale surface proxy reference in the buffer's
GstVaapiVideoMeta, always update the reference to the correct surface
in gst_vaapi_video_buffer_pool_acquire_buffer().
gst/vaapi/gstvaapivideobufferpool.c