Skip to content
Snippets Groups Projects
Commit 9fbf0d33 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Rémi Denis-Courmont
Browse files

wayland/shm: hold image on prepare


Picture is released by the core, but we can only release it for real after
receiving a wl_buffer::release event.

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 1daaaaf5
No related branches found
No related tags found
No related merge requests found
......@@ -219,6 +219,8 @@ static void Prepare(vout_display_t *vd, picture_t *pic, subpicture_t *subpic,
struct wl_surface *surface = sys->embed->handle.wl;
struct wl_buffer *buf = (struct wl_buffer *)pic->p_sys;
picture_Hold(pic);
wl_buffer_set_user_data(buf, pic);
wl_surface_attach(surface, buf, 0, 0);
wl_surface_damage(surface, 0, 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment