screencasting: Fix CI
It seems on the CI the dataFrame is null at times
This commit is contained in:
parent
d563bc6c86
commit
0ce01ac30f
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue