summaryrefslogtreecommitdiffstats
path: root/video/out/drm_common.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-11-06 15:27:03 -0600
committerDudemanguy <random342@airmail.cc>2023-11-07 00:52:46 +0000
commitcf69fa03ca5c5dae0db79c6c96b148088180936a (patch)
treeace1ed8f42f6f4bcab6c48e47eb8204e07053bc5 /video/out/drm_common.c
parentbd4bf6e3836a11733bbebc70002187b2f2ee37ae (diff)
downloadmpv-cf69fa03ca5c5dae0db79c6c96b148088180936a.tar.bz2
mpv-cf69fa03ca5c5dae0db79c6c96b148088180936a.tar.xz
vo: replace max swapchain depth magic number
Diffstat (limited to 'video/out/drm_common.c')
-rw-r--r--video/out/drm_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/drm_common.c b/video/out/drm_common.c
index cc53757e43..2b68bac2ff 100644
--- a/video/out/drm_common.c
+++ b/video/out/drm_common.c
@@ -1030,7 +1030,7 @@ bool vo_drm_init(struct vo *vo)
drm->ev.version = DRM_EVENT_CONTEXT_VERSION;
drm->ev.page_flip_handler = &drm_pflip_cb;
- drm->present = mp_present_initialize(drm, 8); // max swapchain depth allowed
+ drm->present = mp_present_initialize(drm, VO_MAX_SWAPCHAIN_DEPTH);
return true;