summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2022-11-11 13:57:53 -0600
committerDudemanguy <random342@airmail.cc>2022-11-15 15:31:21 +0000
commit38a626650ae9662f583d8a81cbefc4892c0e6dcf (patch)
treeb562322d935454479b74e5fc1bed52300cefd229 /options/options.c
parent295ceab3820b07ad92f95f318b102fec957dd4e3 (diff)
downloadmpv-38a626650ae9662f583d8a81cbefc4892c0e6dcf.tar.bz2
mpv-38a626650ae9662f583d8a81cbefc4892c0e6dcf.tar.xz
player: add --force-render option
mpv has an internal optimization on a couple of platforms where it will not render any frames if the window is minimized or hidden. There's at least once possible use case for wanting to force a render anyway (screensharing with pipeware) so let's just add a simple switch for this that always forces mpv to render. Closes #10846.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 0b1c58d9a6..ad8bde5fc8 100644
--- a/options/options.c
+++ b/options/options.c
@@ -126,6 +126,7 @@ static const m_option_t mp_vo_opt_list[] = {
{"window-minimized", OPT_FLAG(window_minimized)},
{"window-maximized", OPT_FLAG(window_maximized)},
{"focus-on-open", OPT_BOOL(focus_on_open)},
+ {"force-render", OPT_FLAG(force_render)},
{"force-window-position", OPT_FLAG(force_window_position)},
{"x11-name", OPT_STRING(winname)},
{"wayland-app-id", OPT_STRING(appid)},