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

Rafaël Carré funman at videolan.org
Sat May 24 00:06:24 CEST 2008


Le Fri, 23 May 2008 23:58:06 +0200 (CEST),
git at videolan.org (git version control) a écrit :

> 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 );

The bug is in TimerDump() , see my recent commit in another function of
this file.

-- 
Rafaël Carré
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080524/132c1fb6/attachment.sig>


More information about the vlc-devel mailing list