From 8ad8dedca8189f7cff44b93f379a1520df3e05f9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 12 Jun 2014 00:34:20 +0200 Subject: win32: implement --priority differently Does anyone actually use this? For now, update it, because it's the only case left where an option points to a global variable (and not a struct offset). --- player/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player') diff --git a/player/main.c b/player/main.c index 3ceb172480..b7e683ad05 100644 --- a/player/main.c +++ b/player/main.c @@ -30,7 +30,6 @@ #include "misc/dispatch.h" #include "osdep/io.h" -#include "osdep/priority.h" #include "osdep/terminal.h" #include "osdep/timer.h" @@ -521,7 +520,8 @@ int mpv_main(int argc, char *argv[]) } #if HAVE_PRIORITY - set_priority(); + if (opts->w32_priority > 0) + SetPriorityClass(GetCurrentProcess(), opts->w32_priority); #endif if (mp_initialize(mpctx) < 0) -- cgit v1.2.3