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>