Commit 97d02b14 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Print messages directly to standard error if we don't have an object much like...

Print messages directly to standard error if we don't have an object much like when malloc fails, though this time with UTF-8 support.
parent 43dbc005
......@@ -295,12 +295,16 @@ static void QueueMsg( vlc_object_t *p_this, int i_queue, int i_type,
int i_size = strlen(psz_format) + INTF_MAX_MSG_SIZE;
#endif
if( p_this == NULL || p_this->i_flags & OBJECT_FLAGS_QUIET ||
(p_this->i_flags & OBJECT_FLAGS_NODBG && i_type == VLC_MSG_DBG) )
if( p_this == NULL )
{
utf8_vfprintf( stderr, psz_format, _args );
return;
}
if( p_this->i_flags & OBJECT_FLAGS_QUIET ||
(p_this->i_flags & OBJECT_FLAGS_NODBG && i_type == VLC_MSG_DBG) )
return;
#ifndef __GLIBC__
/* Expand %m to strerror(errno) - only once */
char buf[strlen( psz_format ) + 2001], *ptr;
......
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