]> git.sesse.net Git - vlc/blobdiff - src/misc/stats.c
Qt: fix a deadlock in the information panel.
[vlc] / src / misc / stats.c
index db058b2a8a03bf5e8ee7c3ed8acc6d24e7878042..db0d13d6609bc6c530db9c4978e79f96a3c2aaa2 100644 (file)
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <stdio.h>                                               /* required */
 
-#include <assert.h>
-
 #include "input/input_internal.h"
 
 /*****************************************************************************
@@ -378,7 +376,6 @@ void __stats_TimerDump( vlc_object_t *p_obj, unsigned int i_id )
             break;
         }
     }
-    assert( p_counter );
     TimerDump( p_obj, p_counter, true );
     vlc_mutex_unlock( &priv->timer_lock );
 }
@@ -584,7 +581,8 @@ static int CounterUpdate( vlc_object_t *p_handler,
 static void TimerDump( vlc_object_t *p_obj, counter_t *p_counter,
                        bool b_total )
 {
-    assert( p_counter );
+    if( !p_counter )
+        return;
 
     mtime_t last, total;
     int i_total;