From 159eb3f962b845c861b5f10da35fcc12e1e6cb15 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 6 Dec 2015 19:20:23 +0100 Subject: win32: add option to set VO MMCSS profile This was requested. --- options/options.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index d344f48b1a..f65e63566d 100644 --- a/options/options.c +++ b/options/options.c @@ -456,6 +456,10 @@ const m_option_t mp_opts[] = { ({"auto", 0}, {"no", -1}, {"yes", 1})), OPT_FLAG("x11-bypass-compositor", vo.x11_bypass_compositor, 0), #endif +#if HAVE_WIN32 + OPT_STRING("vo-mmcss-profile", vo.mmcss_profile, M_OPT_FIXED), +#endif + OPT_STRING("heartbeat-cmd", heartbeat_cmd, 0), OPT_FLOAT("heartbeat-interval", heartbeat_interval, CONF_MIN, 0), @@ -701,6 +705,7 @@ const struct MPOpts mp_default_opts = { .WinID = -1, .window_scale = 1.0, .x11_bypass_compositor = 1, + .mmcss_profile = "Playback", }, .allow_win_drag = 1, .wintitle = "${?media-title:${media-title}}${!media-title:No file} - mpv", -- cgit v1.2.3