From 0ce01ac30f8e0e25ceee94331c71185b3c3e46c7 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 19 Jan 2024 14:10:35 +0100 Subject: [PATCH] screencasting: Fix CI It seems on the CI the dataFrame is null at times --- autotests/integration/screencasting_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autotests/integration/screencasting_test.cpp b/autotests/integration/screencasting_test.cpp index 28d8f6f332..a1b7d258d5 100644 --- a/autotests/integration/screencasting_test.cpp +++ b/autotests/integration/screencasting_test.cpp @@ -114,7 +114,9 @@ std::optional ScreencastingTest::oneFrameAndClose(Test::ScreencastingStr std::optional 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);