screenshare: destroy bo on pwStreamRemoveBuffer
This commit is contained in:
parent
8d3538e113
commit
716da5e0f3
|
@ -932,6 +932,9 @@ static void pwStreamRemoveBuffer(void* data, pw_buffer* buffer) {
|
||||||
if (PSTREAM->currentPWBuffer == PBUFFER)
|
if (PSTREAM->currentPWBuffer == PBUFFER)
|
||||||
PSTREAM->currentPWBuffer = nullptr;
|
PSTREAM->currentPWBuffer = nullptr;
|
||||||
|
|
||||||
|
if (PBUFFER->isDMABUF)
|
||||||
|
gbm_bo_destroy(PBUFFER->bo);
|
||||||
|
|
||||||
wl_buffer_destroy(PBUFFER->wlBuffer);
|
wl_buffer_destroy(PBUFFER->wlBuffer);
|
||||||
for (int plane = 0; plane < PBUFFER->planeCount; plane++) {
|
for (int plane = 0; plane < PBUFFER->planeCount; plane++) {
|
||||||
close(PBUFFER->fd[plane]);
|
close(PBUFFER->fd[plane]);
|
||||||
|
|
Loading…
Reference in New Issue