]> git.sesse.net Git - vlc/blobdiff - src/misc/stats.c
stats: Don't crash if there is no timer to dump.
[vlc] / src / misc / stats.c
index 1b05c11b24cbb4f8aa3c679097fbafa99fa13309..266fe287b4930123ff1d9a53e9986d03de1ad012 100644 (file)
@@ -376,7 +376,7 @@ void __stats_TimerDump( vlc_object_t *p_obj, unsigned int i_id )
             break;
         }
     }
-    TimerDump( p_obj, p_counter, true );
+    if( p_counter ) TimerDump( p_obj, p_counter, true );
     vlc_mutex_unlock( &priv->timer_lock );
 }