vaencoder: Honor entrypoint at constructor.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 19 Oct 2022 14:08:17 +0000 (16:08 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 26 Oct 2022 08:19:32 +0000 (08:19 +0000)
commitd463feaa0800782a3691a92a1fde02bc44e5854a
treec2db8377f37079821b44fd46cb9157b6d3606f28
parent79c47fbdb8edf5911fc6f378546be586702fba32
vaencoder: Honor entrypoint at constructor.

The entrypoint is set when the encoder helper is constructed,
nonetheless it was also passed as parameter when opening. That's
buggy.

In order to simplify the code, the entrypoint at construction is
honored.

But gst_va_encoder_has_profile_and_entrypoint() now doesn't rely in
the internal list of profiles since it only contains those that
belongs to codec and entrypoint, thus it queries directly the VA
driver.

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