diff options
author | wm4 <wm4@nowhere> | 2014-06-12 00:34:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-12 00:55:14 +0200 |
commit | 8ad8dedca8189f7cff44b93f379a1520df3e05f9 (patch) | |
tree | 90512a6e17d6c00015aa58ed77e95250aa7b040d /player | |
parent | 66f67835c3233fb7498bf101c739927f1d326724 (diff) | |
download | mpv-8ad8dedca8189f7cff44b93f379a1520df3e05f9.tar.bz2 mpv-8ad8dedca8189f7cff44b93f379a1520df3e05f9.tar.xz |
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).
Diffstat (limited to 'player')
-rw-r--r-- | player/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |