Commit 2bb2d008 authored by Gildas Bazin's avatar Gildas Bazin

* on win32 the rc plugin opens a new console.
parent bf05a0e1
......@@ -2,7 +2,7 @@
* intf_dummy.c: dummy interface plugin
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: intf_dummy.c,v 1.16 2002/05/19 10:06:37 gbazin Exp $
* $Id: intf_dummy.c,v 1.17 2002/05/19 15:23:35 gbazin Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
......@@ -71,6 +71,15 @@ static int intf_Open( intf_thread_t *p_intf )
return( 1 );
};
#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
return( 0 );
}
......@@ -89,15 +98,6 @@ static void intf_Close( 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 )
{
/* Manage core vlc functions through the callback */
......
......@@ -2,7 +2,7 @@
* rc.c : remote control stdin/stdout plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: rc.c,v 1.13 2002/05/18 07:30:03 sam Exp $
* $Id: rc.c,v 1.14 2002/05/19 15:23:35 gbazin Exp $
*
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
*
......@@ -120,6 +120,14 @@ static int intf_Open( intf_thread_t *p_intf )
return( 1 );
}
#ifdef WIN32
AllocConsole();
freopen( "CONOUT$", "w", stdout );
freopen( "CONOUT$", "w", stderr );
freopen( "CONIN$", "r", stdin );
intf_Msg( VERSION_MESSAGE );
#endif
intf_Msg( "rc: remote control interface initialized, `h' for help" );
return( 0 );
}
......
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