From e9f577eb9a81cea09209bbf4eb910f89caa63b02 Mon Sep 17 00:00:00 2001 From: Martin Herkt Date: Sat, 28 Dec 2013 04:45:52 +0100 Subject: 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. --- player/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'player/main.c') 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 -- cgit v1.2.3