diff options
author | Dudemanguy <random342@airmail.cc> | 2023-11-06 15:27:03 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-07 00:52:46 +0000 |
commit | cf69fa03ca5c5dae0db79c6c96b148088180936a (patch) | |
tree | ace1ed8f42f6f4bcab6c48e47eb8204e07053bc5 /video/out/wayland_common.c | |
parent | bd4bf6e3836a11733bbebc70002187b2f2ee37ae (diff) | |
download | mpv-cf69fa03ca5c5dae0db79c6c96b148088180936a.tar.bz2 mpv-cf69fa03ca5c5dae0db79c6c96b148088180936a.tar.xz |
vo: replace max swapchain depth magic number
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r-- | video/out/wayland_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 381a934c30..fa6356084c 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -2280,10 +2280,10 @@ bool vo_wayland_init(struct vo *vo) if (wl->presentation) { wl->fback_pool = talloc_zero(wl, struct vo_wayland_feedback_pool); wl->fback_pool->wl = wl; - wl->fback_pool->len = 8; // max swapchain depth allowed + wl->fback_pool->len = VO_MAX_SWAPCHAIN_DEPTH; wl->fback_pool->fback = talloc_zero_array(wl->fback_pool, struct wp_presentation_feedback *, wl->fback_pool->len); - wl->present = mp_present_initialize(wl, 8); // max swapchain depth allowed + wl->present = mp_present_initialize(wl, VO_MAX_SWAPCHAIN_DEPTH); } else { MP_VERBOSE(wl, "Compositor doesn't support the %s protocol!\n", wp_presentation_interface.name); |