[vlc-devel] commit: Be lazy : let modules do what they want with stats - without crashing ( Rafaël Carré )
git version control
git at videolan.org
Fri May 23 17:06:11 CEST 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri May 23 17:06:51 2008 +0200| [a87e722124d2fc8aa8911f7ece1d331ce7d456af]
Be lazy : let modules do what they want with stats - without crashing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a87e722124d2fc8aa8911f7ece1d331ce7d456af
---
src/misc/stats.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/misc/stats.c b/src/misc/stats.c
index db058b2..1b05c11 100644
--- a/src/misc/stats.c
+++ b/src/misc/stats.c
@@ -32,8 +32,6 @@
#include <vlc/vlc.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;
More information about the vlc-devel
mailing list