win32: add an option to change window affinity

This commit is contained in:
DeadSix
2023-09-21 23:13:07 +02:00
committed by Dudemanguy
parent 4c39e79169
commit 2c738ca54b
4 changed files with 28 additions and 4 deletions

View File

@@ -186,6 +186,8 @@ static const m_option_t mp_vo_opt_list[] = {
{"photo", 1}, {"video", 2}, {"game", 3})},
#endif
#if HAVE_WIN32_DESKTOP
{"window-affinity", OPT_CHOICE(window_affinity, {"default", WDA_NONE},
{"excludefromcapture", WDA_EXCLUDEFROMCAPTURE}, {"monitor", WDA_MONITOR})},
{"vo-mmcss-profile", OPT_STRING(mmcss_profile)},
#endif
#if HAVE_EGL_ANDROID

View File

@@ -63,6 +63,7 @@ typedef struct mp_vo_opts {
bool force_render;
bool force_window_position;
int window_affinity;
char *mmcss_profile;
double override_display_fps;