Commit 7ba81f52 authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊

Remove doubled parts and fix compile for systems without pipewire

SPA_DATA_DmaBuf checking was written twice which needs on pipewire
parent b9efda59
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment