diff options
author | Anton Kindestam <antonki@kth.se> | 2019-09-28 10:26:23 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-09-28 14:10:01 +0300 |
commit | 62904203804afb614f4809495f1a1bb6e4006aaa (patch) | |
tree | ffeaceaebb78c664c9d183333836594b245ba1e1 /options | |
parent | 9538fb5a7af951e220f26c87c80aaaa2a5cfbc67 (diff) | |
download | mpv-62904203804afb614f4809495f1a1bb6e4006aaa.tar.bz2 mpv-62904203804afb614f4809495f1a1bb6e4006aaa.tar.xz |
vo: make swapchain-depth option generic for all VOs
In preparation for making vo_drm able to use swapchain-depth
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 2 | ||||
-rw-r--r-- | options/options.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 9e74821278..7f0fde6af5 100644 --- a/options/options.c +++ b/options/options.c @@ -160,6 +160,7 @@ static const m_option_t mp_vo_opt_list[] = { #if HAVE_DRM OPT_SUBSTRUCT("", drm_opts, drm_conf, 0), #endif + OPT_INTRANGE("swapchain-depth", swapchain_depth, 0, 1, 8), {0} }; @@ -186,6 +187,7 @@ const struct m_sub_options vo_sub_opts = { .mmcss_profile = "Playback", .ontop_level = -1, .timing_offset = 0.050, + .swapchain_depth = 3, }, }; diff --git a/options/options.h b/options/options.h index d979f11e19..be76364c89 100644 --- a/options/options.h +++ b/options/options.h @@ -59,6 +59,8 @@ typedef struct mp_vo_opts { struct sws_opts *sws_opts; // vo_drm struct drm_opts *drm_opts; + + int swapchain_depth; // max number of images to render ahead } mp_vo_opts; // Subtitle options needed by the subtitle decoders/renderers. |