mirror of
https://invent.kde.org/network/krfb
synced 2024-07-05 09:28:35 +00:00
Remove doubled parts and fix compile for systems without pipewire
SPA_DATA_DmaBuf checking was written twice which needs on pipewire
This commit is contained in:
parent
b9efda5956
commit
7ba81f52df
|
@ -718,14 +718,10 @@ void PWFrameBuffer::Private::handleFrame(pw_buffer *pwBuffer)
|
|||
{
|
||||
auto *spaBuffer = pwBuffer->buffer;
|
||||
void *src = spaBuffer->datas[0].data;
|
||||
if (!src && spaBuffer->datas->type != SPA_DATA_DmaBuf) {
|
||||
qCDebug(KRFB_FB_PIPEWIRE) << "discarding null buffer";
|
||||
return;
|
||||
}
|
||||
|
||||
#if PW_CHECK_VERSION(0, 2, 90)
|
||||
if (spaBuffer->datas->type != SPA_DATA_DmaBuf) {
|
||||
qDebug() << "discarding null buffer";
|
||||
if (!src && spaBuffer->datas->type != SPA_DATA_DmaBuf) {
|
||||
qCDebug(KRFB_FB_PIPEWIRE) << "discarding null buffer";
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user