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

git version control git at videolan.org
Sat May 24 00:56:38 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat May 24 00:57:17 2008 +0200| [6e708ae5f2e485751f59836969897fa776114cf0]

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

This reverts commit 8fe54e490872687b20e52581d84a94ffa7f443b0.

No need for that one, now that Rafael handles it in DumpTimer directly.

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

 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 266fe28..1b05c11 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;
         }
     }
-    if( p_counter ) TimerDump( p_obj, p_counter, true );
+    TimerDump( p_obj, p_counter, true );
     vlc_mutex_unlock( &priv->timer_lock );
 }
 




More information about the vlc-devel mailing list