summaryrefslogtreecommitdiffstats
path: root/player/main.c
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2013-12-28 04:45:52 +0100
committerMartin Herkt <lachs0r@srsfckn.biz>2014-01-02 05:30:49 +0100
commite9f577eb9a81cea09209bbf4eb910f89caa63b02 (patch)
tree9e097866d594edcb7ea975d64eed09d66445bdac /player/main.c
parentfd89a7598820f5b5a7a4b7029e31dd100cefbb96 (diff)
downloadmpv-e9f577eb9a81cea09209bbf4eb910f89caa63b02.tar.bz2
mpv-e9f577eb9a81cea09209bbf4eb910f89caa63b02.tar.xz
Windows: use the GUI subsystem, attach to console
This is necessary to start mpv without forcing a console window, but also breaks console usability. A workaround is to call mpv from a wrapper process that uses the console subsystem and helps redirecting the standard streams and WriteConsole output to where they belong.
Diffstat (limited to 'player/main.c')
-rw-r--r--player/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c
index 40715d382e..afb3db46ea 100644
--- a/player/main.c
+++ b/player/main.c
@@ -249,6 +249,7 @@ static void osdep_preinit(int *p_argc, char ***p_argv)
talloc_enable_leak_report();
#ifdef __MINGW32__
+ mp_attach_console();
mp_get_converted_argv(p_argc, p_argv);
#endif