tst_qscreencapturebackend: Use FrameGrabber


This patch makes the screen capture tests that wait for frames from the
capture use QtMultimediaTest::FrameGrabber, as the window capture tests
do. The grabber consumes the first frame of each stream, so a null-frame
ending a previous stream is no longer mistaken for the first frame of
the next one.

Without this fix, the test case
'setActive_restartsScreenCapture_whenStartedAgainAfterStop' fails once
backends implement ending their stream with a null-frame.

Pick-to: 6.12
Change-Id: I1d34aacb1710d36067bd71ea64af3ca32e87d8c8
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
commitc39d875f35a5caa87b22ac554bc445959ba1b54f
parent7a388fe0720a9b57dd4979f7571507333409b00c
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:56 +0000