[vlc-devel] commit: stats: Don't crash if there is no timer to dump. (Pierre d' Herbemont )

git version control git at videolan.org
Fri May 23 23:58:06 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Fri May 23 22:46:03 2008 +0200| [8fe54e490872687b20e52581d84a94ffa7f443b0]

stats: Don't crash if there is no timer to dump.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8fe54e490872687b20e52581d84a94ffa7f443b0
---

 src/misc/stats.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/stats.c b/src/misc/stats.c
index 1b05c11..266fe28 100644
--- a/src/misc/stats.c
+++ b/src/misc/stats.c
@@ -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 );
 }
 




More information about the vlc-devel mailing list