mirror of
https://invent.kde.org/network/krfb
synced 2024-07-05 17:38:38 +00:00
wayland: Adapt to change in kpipewire
This commit is contained in:
parent
345ec522db
commit
a87302156a
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user