VideoEncoder: Buffer initial frames until frame rate negotiation done


Frame rate adapter was configured with the real negotiated codec frame
rate in init(), running on the encoder's worker thread, without taking
the loop-data lock. Frames could get adapted using the provisional rate,
producing wrong frame counts and pts.

This patch adds buffering of any frame arriving before init(), including
the priming frame in RecordingEngine::addVideoSource(), so it gets
adapted only after the proper rates are set.

Pick-to: 6.12
Change-Id: I3b5ba3681b6d9879e2493df3e0731e2e9d55a81c
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
commita756b6c36e70b59d13a35293acc4445aa18384b7
parentb7c06b0677adff9aceeea1bc1a60c6392ea9bd94
authorMikko Hallamaa <mikko.hallamaa@qt.io>
committerMikko Hallamaa <mikko.hallamaa@qt.io>
commit timeWed, 2 Sep 2026 07:55:30 +0000