From 2a6fdbb4b001bf8553e98b5ea75914aac84ad293 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Fri, 2 Jul 2010 20:46:12 +0300 Subject: [PATCH] stats: can't set two values in the same union --- src/misc/stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc/stats.c b/src/misc/stats.c index 8a360c4fb0..2190f4846d 100644 --- a/src/misc/stats.c +++ b/src/misc/stats.c @@ -102,7 +102,7 @@ int stats_Get( vlc_object_t *p_this, counter_t *p_counter, vlc_value_t *val ) { if( !libvlc_stats (p_this) || !p_counter || p_counter->i_samples == 0 ) { - val->i_int = val->f_float = 0.0; + val->i_int = 0; return VLC_EGENERIC; } @@ -118,7 +118,7 @@ int stats_Get( vlc_object_t *p_this, counter_t *p_counter, vlc_value_t *val ) /* Not ready yet */ if( p_counter->i_samples < 2 ) { - val->i_int = 0; val->f_float = 0.0; + val->i_int = 0; return VLC_EGENERIC; } if( p_counter->i_type == VLC_VAR_INTEGER ) -- 2.39.5