vabaseenc: Enable encoder reconfiguration.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 20 Oct 2022 09:13:19 +0000 (11:13 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 9 Nov 2022 05:13:26 +0000 (06:13 +0100)
commitbd3c50e50ff530e17d10a9ef96c53529fe965d19
treedb3a28e600c52c7f8cced658d2c24e816a12d81f
parent351a107ecc9af4873c628504c311a28d9c076c8e
vabaseenc: Enable encoder reconfiguration.

Adds an internal function reset() which drains the internal queues and
calls the reconfig() vmethod.

This reset() method is called inconditionally at set_format() and in
handle_frame() if the instance's reconf flag is enabled.

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