From b712095d894c1ee8aba833e0263c40ce0a59e9c5 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Wed, 28 Sep 2016 21:47:30 +1000 Subject: win32: make --priority runtime-settable I'm not sure if this option affects anything or if it's a placebo, especially since the VO thread is now registered with MMCSS. Still, I think --priority=high may have helped back when I used mplayer2 on a netbook. It's also possible that encoding-mode users would want to set --priority=idle. Anyway, it was one of the last M_OPT_FIXED options, so fix that. --- player/main.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'player/main.c') diff --git a/player/main.c b/player/main.c index ad907e034a..7dcc266094 100644 --- a/player/main.c +++ b/player/main.c @@ -66,10 +66,6 @@ static const char def_config[] = #include "player/builtin_conf.inc" ; -#ifdef _WIN32 -#include -#endif - #if HAVE_COCOA #include "osdep/macosx_events.h" #endif @@ -472,11 +468,6 @@ int mp_initialize(struct MPContext *mpctx, char **options) if (opts->force_vo == 2 && handle_force_window(mpctx, false) < 0) return -1; -#ifdef _WIN32 - if (opts->w32_priority > 0) - SetPriorityClass(GetCurrentProcess(), opts->w32_priority); -#endif - MP_STATS(mpctx, "end init"); return 0; -- cgit v1.2.3