FrameGrabber: Return frame info from tryWaitForFirstFrameInfo()


A continuation of 005d7c149c525b93cebaccd443cd52a64047e10b. The function
'consumeFirstFrame()' works for capturing the first frame of a stream,
but in most cases we don't actually need the contents of that frame,
the associated info. Storing full QVideoFrames is bad in case they hold
references to backend texture pools.

This patch modifies the first-frame accessor to instead store a copy of
the VideoFrameInfo. We also rename it to tryWaitFirstFrameInfo() to
better match the new semantics. We still keep an alternative function
to allow us to retain the full frame, for the tests where it is needed.

Pick-to: 6.12
Change-Id: I521424c153977c5a473bcef58cf43da65fdfad28
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
commit7a388fe0720a9b57dd4979f7571507333409b00c
parent30040d1827f6a585093ded7e996c67f62b350774
authorNils Petter Skålerud <nils.petter.skalerud@qt.io>
committerNils Petter Skålerud <nils.petter.skalerud@qt.io>
commit timeFri, 9 Oct 2026 09:32:53 +0000