[PATCH] encodedstream: Don't query VAAPI in the constructor
authorArjen Hiemstra <ahiemstra@heimr.nl>
Tue, 8 Oct 2024 12:20:55 +0000 (14:20 +0200)
committerAurélien COUDERC <coucouf@debian.org>
Tue, 15 Jul 2025 14:45:40 +0000 (16:45 +0200)
commitad1aa146709e931f12b30c6f61cac33e2fa2994c
tree2d6e6195a50bc7c5ef6bba43ff0158ab16cdb192
parent0b9ec63ea753619431669e19bcf4f4aeaf7d13a2
[PATCH] encodedstream: Don't query VAAPI in the constructor

Querying VAAPI is expensive, so we should only do that when necessary.
So rather than querying what encoder to use on construction, query it on
start and only if we don't already have an encoder set. This also avoids
duplicate lookups if the user already set the encoder.

Gbp-Pq: Name upstream_8793ae86_encodedstream-Don-t-query-VAAPI-in-the-constructor.patch
src/pipewirebaseencodedstream.cpp