This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch devs/cedric/wl/ecore-evas-fixes
in repository efl.
View the commit online.
commit 1b180d81fdbeecda80a4c4d7203acfcb15de7632
Author: Cedric BAIL <[email protected]>
AuthorDate: Fri Nov 27 22:05:28 2026 -0600
ecore_wl2/dmabuf: do not queue a buffer that failed to allocate
When ecore_wl2_surface_buffer_create() failed, the NULL result was
still given an age and appended to the buffer list, logging a safety
check error and leaving a NULL entry that later frames walk over and
that counts against MAX_BUFFERS. Only keep buffers that were created.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DGDCULiZLyb9VfMVzJ293M
---
.../ecore_wl2/engines/dmabuf/ecore_wl2_surface_module_dmabuf.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/modules/ecore_wl2/engines/dmabuf/ecore_wl2_surface_module_dmabuf.c b/src/modules/ecore_wl2/engines/dmabuf/ecore_wl2_surface_module_dmabuf.c
index af394f3ce4..a74b97ea9d 100644
--- a/src/modules/ecore_wl2/engines/dmabuf/ecore_wl2_surface_module_dmabuf.c
+++ b/src/modules/ecore_wl2/engines/dmabuf/ecore_wl2_surface_module_dmabuf.c
@@ -141,9 +141,12 @@ _evas_dmabuf_surface_wait(Ecore_Wl2_Surface *s, Ecore_Wl2_Dmabuf_Private *p)
if (!best && (eina_list_count(p->buffers) < MAX_BUFFERS))
{
best = ecore_wl2_surface_buffer_create(s);
- /* Start at -1 so it's age is incremented to 0 for first draw */
- ecore_wl2_buffer_age_set(best, -1);
- p->buffers = eina_list_append(p->buffers, best);
+ if (best)
+ {
+ /* Start at -1 so it's age is incremented to 0 for first draw */
+ ecore_wl2_buffer_age_set(best, -1);
+ p->buffers = eina_list_append(p->buffers, best);
+ }
}
return best;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.