# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <stdio.h> /* required */
#include "input/input_internal.h"
static void TimerDump( vlc_object_t *p_obj, counter_t *p_counter,
bool b_total )
{
+ if( !p_counter )
+ return;
+
mtime_t last, total;
int i_total;
- if( !p_counter || p_counter->i_samples != 2 )
+ if( p_counter->i_samples != 2 )
{
msg_Err( p_obj, "timer %s does not exist", p_counter->psz_name );
return;