]> git.sesse.net Git - vlc/commitdiff
Print messages directly to standard error if we don't have an object much like when...
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 22 Jan 2008 18:55:13 +0000 (18:55 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 22 Jan 2008 18:55:13 +0000 (18:55 +0000)
src/misc/messages.c

index e00dbaf2b70d5ca65015db98231f8f78b62eb381..07953379dd6fcf27060fbc6430e226f7f26d9402 100644 (file)
@@ -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;