From: RĂ©mi Denis-Courmont Date: Fri, 2 Jul 2010 17:46:12 +0000 (+0300) Subject: stats: can't set two values in the same union X-Git-Tag: 1.2.0-pre1~5976 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2a6fdbb4b001bf8553e98b5ea75914aac84ad293;p=vlc stats: can't set two values in the same union --- 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 )