Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Krfb
Commits
7ba81f52
Commit
7ba81f52
authored
Sep 19, 2020
by
Ömer Fadıl Usta
😊
Browse files
Remove doubled parts and fix compile for systems without pipewire
SPA_DATA_DmaBuf checking was written twice which needs on pipewire
parent
b9efda59
Changes
1
Hide whitespace changes
Inline
Side-by-side
framebuffers/pipewire/pw_framebuffer.cpp
View file @
7ba81f52
...
...
@@ -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
)
{
q
C
Debug
(
KRFB_FB_PIPEWIRE
)
<<
"discarding null buffer"
;
return
;
}
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment