mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:31:16 -07:00
wayland: Adapt to change in kpipewire
This commit is contained in:
@@ -341,15 +341,15 @@ void PWFrameBuffer::Private::handleFrame(const PipeWireFrame &frame)
|
|||||||
{
|
{
|
||||||
cursor = frame.cursor;
|
cursor = frame.cursor;
|
||||||
|
|
||||||
if (!frame.dmabuf && !frame.image) {
|
if (!frame.dmabuf && !frame.dataFrame) {
|
||||||
qCDebug(KRFB_FB_PIPEWIRE) << "Got empty buffer. The buffer possibly carried only "
|
qCDebug(KRFB_FB_PIPEWIRE) << "Got empty buffer. The buffer possibly carried only "
|
||||||
"information about the mouse cursor.";
|
"information about the mouse cursor.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (frame.image) {
|
if (frame.dataFrame) {
|
||||||
memcpy(q->fb, frame.image->constBits(), frame.image->sizeInBytes());
|
memcpy(q->fb, frame.dataFrame->data, frame.dataFrame->size.width() * frame.dataFrame->stride);
|
||||||
setVideoSize(frame.image->size());
|
setVideoSize(frame.dataFrame->size);
|
||||||
}
|
}
|
||||||
else if (frame.dmabuf) {
|
else if (frame.dmabuf) {
|
||||||
QImage src((uchar*) q->fb, videoSize.width(), videoSize.height(), QImage::Format_RGB32);
|
QImage src((uchar*) q->fb, videoSize.width(), videoSize.height(), QImage::Format_RGB32);
|
||||||
|
|||||||
Reference in New Issue
Block a user