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