]> git.sesse.net Git - vlc/commitdiff
stats: can't set two values in the same union
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 2 Jul 2010 17:46:12 +0000 (20:46 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 2 Jul 2010 17:46:12 +0000 (20:46 +0300)
src/misc/stats.c

index 8a360c4fb046560a04d60cd21fd8db7015999f24..2190f4846d01b10bc6d5aeddc790564c0e67c088 100644 (file)
@@ -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 )