[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>
Sun, 18 May 2025 22:58:37 +0000 (00:58 +0200)
commita8197fd65c8429a05f2cb43aea691e829aa8bad7
tree1987584c26f3433b92d48120aa9f111bdde872f2
parenta79b957f3912d253a6cf3c057dcfe38961f169e2
[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