* cosmetic messages cleanups.
* vlc_config.h: limits and configuration
* Defines all compilation-time configuration constants and size limits
*****************************************************************************
- * Copyright (C) 1999-2002 VideoLAN
+ * Copyright (C) 1999-2003 VideoLAN
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
/* When a thread waits on a condition in debug mode, delay to wait before
* outputting an error message (in second) */
-#define THREAD_COND_TIMEOUT 5
+#define THREAD_COND_TIMEOUT 15
/* The configuration file and directory */
#ifdef SYS_BEOS
/*****************************************************************************
* intf.m: MacOS X interface plugin
*****************************************************************************
- * Copyright (C) 2002 VideoLAN
- * $Id: intf.m,v 1.20 2003/01/06 22:07:47 massiot Exp $
+ * Copyright (C) 2002-2003 VideoLAN
+ * $Id: intf.m,v 1.21 2003/01/09 23:43:07 massiot Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
- (NSString *)localizedString:(char *)psz
{
+ if ( psz == NULL ) return NULL;
UInt32 uiLength = (UInt32)strlen( psz );
NSData * o_data = [NSData dataWithBytes: psz length: uiLength];
NSString *o_str = [[NSString alloc] initWithData: o_data
* ipv4.c: IPv4 network abstraction layer
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: ipv4.c,v 1.11 2003/01/02 23:50:55 massiot Exp $
+ * $Id: ipv4.c,v 1.12 2003/01/09 23:43:07 massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Mathias Kretschmer <mathias@research.att.com>
(void *) &i_opt, sizeof( i_opt ) ) == -1 )
{
#ifdef HAVE_ERRNO_H
- msg_Warn( p_this, "cannot configure socket (SO_RCVBUF: %s)",
+ msg_Dbg( p_this, "cannot configure socket (SO_RCVBUF: %s)",
strerror(errno));
#else
msg_Warn( p_this, "cannot configure socket (SO_RCVBUF)" );
}
else if( i_opt < 0x80000 )
{
- msg_Warn( p_this, "socket buffer size is 0x%x instead of 0x%x",
- i_opt, 0x80000 );
+ msg_Dbg( p_this, "socket buffer size is 0x%x instead of 0x%x",
+ i_opt, 0x80000 );
}
* threads.c : threads implementation for the VideoLAN client
*****************************************************************************
* Copyright (C) 1999, 2000, 2001, 2002 VideoLAN
- * $Id: threads.c,v 1.32 2003/01/06 22:57:47 massiot Exp $
+ * $Id: threads.c,v 1.33 2003/01/09 23:43:07 massiot Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
psz_file, i_line, strerror(i_error) );
i_priority = 0;
}
+
}
#elif defined( HAVE_CTHREADS_H )
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
if ( i_priority )
{
+ int i_error;
struct sched_param param;
memset( ¶m, 0, sizeof(struct sched_param) );
param.sched_priority = i_priority;
- if ( pthread_setschedparam( pthread_self(), SCHED_RR, ¶m ) )
+ if ( (i_error = pthread_setschedparam( pthread_self(),
+ SCHED_RR, ¶m )) )
{
- msg_Warn( p_this, "couldn't go to real-time priority (%s:%d)",
- psz_file, i_line );
- return 1;
+ msg_Warn( p_this, "couldn't go to real-time priority (%s:%d): %s",
+ psz_file, i_line, strerror(i_error) );
+ i_priority = 0;
}
}
-#else
- return 1;
#endif
return 0;