Commit b0ab1d96 authored by Gildas Bazin's avatar Gildas Bazin

* on win32 the dummy interface plugin will open a dos command box. With
this fix, vlc should never fail silently and leave a ghost process
running in the background when there isn't any working GUI plugin.
parent 130d95c0
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* intf_dummy.c: dummy interface plugin * intf_dummy.c: dummy interface plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN * Copyright (C) 2000, 2001 VideoLAN
* $Id: intf_dummy.c,v 1.15 2002/02/15 13:32:53 sam Exp $ * $Id: intf_dummy.c,v 1.16 2002/05/19 10:06:37 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -89,6 +89,15 @@ static void intf_Close( intf_thread_t *p_intf ) ...@@ -89,6 +89,15 @@ static void intf_Close( intf_thread_t *p_intf )
*****************************************************************************/ *****************************************************************************/
static void intf_Run( intf_thread_t *p_intf ) static void intf_Run( intf_thread_t *p_intf )
{ {
#ifdef WIN32
AllocConsole();
freopen( "CONOUT$", "w", stdout );
freopen( "CONOUT$", "w", stderr );
freopen( "CONIN$", "r", stdin );
intf_Msg( VERSION_MESSAGE );
intf_Msg( _("\nUsing the dummy interface plugin...") );
#endif
while( !p_intf->b_die ) while( !p_intf->b_die )
{ {
/* Manage core vlc functions through the callback */ /* Manage core vlc functions through the callback */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment