Skip to content

Commit

Permalink
pipewire: Make dmabuf.n_planes != 1 non-fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Dec 6, 2023
1 parent 9894245 commit 2b9c739
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pipewire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,11 @@ static void stream_handle_add_buffer(void *user_data, struct pw_buffer *pw_buffe

if (is_dmabuf) {
const struct wlr_dmabuf_attributes dmabuf = buffer->texture->dmabuf();
assert(dmabuf.n_planes == 1);
if (dmabuf.n_planes != 1)
{
pwr_log.errorf("dmabuf.n_planes != 1");
goto error;
}

off_t size = lseek(dmabuf.fd[0], 0, SEEK_END);
if (size < 0) {
Expand Down

0 comments on commit 2b9c739

Please sign in to comment.