screencasting: Fix CI

It seems on the CI the dataFrame is null at times
wilder/Plasma/6.2
Aleix Pol 2 years ago committed by Vlad Zahorodnii
parent d563bc6c86
commit 0ce01ac30f
  1. 4
      autotests/integration/screencasting_test.cpp

@ -114,7 +114,9 @@ std::optional<QImage> ScreencastingTest::oneFrameAndClose(Test::ScreencastingStr
std::optional<QImage> img;
connect(&pwStream, &PipeWireSourceStream::frameReceived, qGuiApp, [&img](const PipeWireFrame &frame) {
img = frame.dataFrame->toImage();
if (frame.dataFrame) {
img = frame.dataFrame->toImage();
}
});
QSignalSpy spy(&pwStream, &PipeWireSourceStream::frameReceived);

Loading…
Cancel
Save