Commit 07828972 authored by Sam Hocevar's avatar Sam Hocevar

* ./src/misc/messages.c: debug messages that were issued before the -v

    flag was tested for are no longer lost.
parent d87d5035
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* interface, such as message output. * interface, such as message output.
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001, 2002 VideoLAN * Copyright (C) 1999, 2000, 2001, 2002 VideoLAN
* $Id: vlc_messages.h,v 1.2 2002/06/01 18:04:48 sam Exp $ * $Id: vlc_messages.h,v 1.3 2002/07/15 19:15:05 sam Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
typedef struct typedef struct
{ {
int i_type; /* message type, see below */ int i_type; /* message type, see below */
int i_object_id;
char * psz_module; char * psz_module;
char * psz_msg; /* the message itself */ char * psz_msg; /* the message itself */
...@@ -122,8 +123,10 @@ VLC_EXPORT( void, __msg_Dbg, ( void *, const char *, ... ) ); ...@@ -122,8 +123,10 @@ VLC_EXPORT( void, __msg_Dbg, ( void *, const char *, ... ) );
#endif /* HAVE_VARIADIC_MACROS */ #endif /* HAVE_VARIADIC_MACROS */
#define msg_Create(a) __msg_Create(CAST_TO_VLC_OBJECT(a)) #define msg_Create(a) __msg_Create(CAST_TO_VLC_OBJECT(a))
#define msg_Flush(a) __msg_Flush(CAST_TO_VLC_OBJECT(a))
#define msg_Destroy(a) __msg_Destroy(CAST_TO_VLC_OBJECT(a)) #define msg_Destroy(a) __msg_Destroy(CAST_TO_VLC_OBJECT(a))
void __msg_Create ( vlc_object_t * ); void __msg_Create ( vlc_object_t * );
void __msg_Flush ( vlc_object_t * );
void __msg_Destroy ( vlc_object_t * ); void __msg_Destroy ( vlc_object_t * );
#define msg_Subscribe(a) __msg_Subscribe(CAST_TO_VLC_OBJECT(a)) #define msg_Subscribe(a) __msg_Subscribe(CAST_TO_VLC_OBJECT(a))
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* and spawns threads. * and spawns threads.
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2001 VideoLAN * Copyright (C) 1998-2001 VideoLAN
* $Id: libvlc.c,v 1.13 2002/07/11 18:44:12 sam Exp $ * $Id: libvlc.c,v 1.14 2002/07/15 19:15:05 sam Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -404,17 +404,21 @@ vlc_error_t vlc_init( vlc_t *p_vlc, int i_argc, char *ppsz_argv[] ) ...@@ -404,17 +404,21 @@ vlc_error_t vlc_init( vlc_t *p_vlc, int i_argc, char *ppsz_argv[] )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
/* /*
* System specific configuration * System specific configuration
*/ */
system_Configure( p_vlc ); system_Configure( p_vlc );
/* p_vlc inititalization. FIXME ? */ /*
p_vlc->i_desync = config_GetInt( p_vlc, "desync" ) * (mtime_t)1000; * Output messages that may still be in the queue
*/
p_vlc->b_verbose = config_GetInt( p_vlc, "verbose" ); p_vlc->b_verbose = config_GetInt( p_vlc, "verbose" );
p_vlc->b_quiet = config_GetInt( p_vlc, "quiet" ); p_vlc->b_quiet = config_GetInt( p_vlc, "quiet" );
p_vlc->b_color = config_GetInt( p_vlc, "color" ); p_vlc->b_color = config_GetInt( p_vlc, "color" );
msg_Flush( p_vlc );
/* p_vlc inititalization. FIXME ? */
p_vlc->i_desync = config_GetInt( p_vlc, "desync" ) * (mtime_t)1000;
if( !config_GetInt( p_vlc, "mmx" ) ) if( !config_GetInt( p_vlc, "mmx" ) )
p_vlc->i_cpu_capabilities &= ~CPU_CAPABILITY_MMX; p_vlc->i_cpu_capabilities &= ~CPU_CAPABILITY_MMX;
if( !config_GetInt( p_vlc, "3dn" ) ) if( !config_GetInt( p_vlc, "3dn" ) )
......
This diff is collapsed.
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