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 +++++ options/options.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'options') 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", diff --git a/options/options.h b/options/options.h index 78f19f7b2f..53b8cc4564 100644 --- a/options/options.h +++ b/options/options.h @@ -43,6 +43,8 @@ typedef struct mp_vo_opts { float monitor_pixel_aspect; int force_window_position; + char *mmcss_profile; + // vo_wayland, vo_drm struct sws_opts *sws_opts; // vo_opengl, vo_opengl_cb -- cgit v1.2.3