diff options
author | Aaron Boxer <boxerab@protonmail.com> | 2023-02-03 12:03:29 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-05 23:27:08 +0000 |
commit | a3340645beade8a92eae90ac89c467e1cb439741 (patch) | |
tree | 13b7d377240964ba6e2fa0fb9f9a60ddc399e78b /video/out/vo_dmabuf_wayland.c | |
parent | 6803903e0c257c7c9ed59cfd959eeb7956fd4ab4 (diff) | |
download | mpv-a3340645beade8a92eae90ac89c467e1cb439741.tar.bz2 mpv-a3340645beade8a92eae90ac89c467e1cb439741.tar.xz |
vo_dmabuf_wayland: add purgatory list to buffer pool to avoid memory leaks
Diffstat (limited to 'video/out/vo_dmabuf_wayland.c')
-rw-r--r-- | video/out/vo_dmabuf_wayland.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/vo_dmabuf_wayland.c b/video/out/vo_dmabuf_wayland.c index e7bc150000..ca7f5941eb 100644 --- a/video/out/vo_dmabuf_wayland.c +++ b/video/out/vo_dmabuf_wayland.c @@ -239,11 +239,11 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame) // ensure the pool is reset after hwdec seek, // to avoid stutter artifact if (p->want_reset) - wlbuf_pool_clean(p->wlbuf_pool); + wlbuf_pool_clean(p->wlbuf_pool,false); if (p->want_resize) resize(vo); - MP_VERBOSE(entry->vo, "Schedule buffer pool entry : %lu\n",entry->key ); + MP_TRACE(entry->vo, "Schedule buffer pool entry : %lu\n",entry->key ); wl_surface_attach(wl->video_surface, entry->buffer, 0, 0); wl_surface_damage_buffer(wl->video_surface, 0, 0, INT32_MAX, INT32_MAX); } @@ -260,7 +260,7 @@ static void flip_page(struct vo *vo) if (wl->use_present) present_sync_swap(wl->present); if (p->want_reset) { - wlbuf_pool_clean(p->wlbuf_pool); + wlbuf_pool_clean(p->wlbuf_pool,false); p->want_reset = false; } } |