Commit a87e7221 authored by Rafaël Carré's avatar Rafaël Carré

Be lazy : let modules do what they want with stats - without crashing

parent da9d2466
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include <stdio.h> /* required */ #include <stdio.h> /* required */
#include <assert.h>
#include "input/input_internal.h" #include "input/input_internal.h"
/***************************************************************************** /*****************************************************************************
...@@ -378,7 +376,6 @@ void __stats_TimerDump( vlc_object_t *p_obj, unsigned int i_id ) ...@@ -378,7 +376,6 @@ void __stats_TimerDump( vlc_object_t *p_obj, unsigned int i_id )
break; break;
} }
} }
assert( p_counter );
TimerDump( p_obj, p_counter, true ); TimerDump( p_obj, p_counter, true );
vlc_mutex_unlock( &priv->timer_lock ); vlc_mutex_unlock( &priv->timer_lock );
} }
...@@ -584,7 +581,8 @@ static int CounterUpdate( vlc_object_t *p_handler, ...@@ -584,7 +581,8 @@ static int CounterUpdate( vlc_object_t *p_handler,
static void TimerDump( vlc_object_t *p_obj, counter_t *p_counter, static void TimerDump( vlc_object_t *p_obj, counter_t *p_counter,
bool b_total ) bool b_total )
{ {
assert( p_counter ); if( !p_counter )
return;
mtime_t last, total; mtime_t last, total;
int i_total; int i_total;
......
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