mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
dmabuf: pop buffer on failure (#9620)
ensure it doesnt permanently gets stuck in the container on failure, pop it from the container.
This commit is contained in:
@@ -221,6 +221,7 @@ void CLinuxDMABUFParamsResource::create(uint32_t id) {
|
||||
|
||||
if UNLIKELY (!buf->good() || !buf->buffer->success) {
|
||||
resource->sendFailed();
|
||||
PROTO::linuxDma->m_vBuffers.pop_back();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user