[vlc-commits] commit: stats: can't set two values in the same union ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Fri Jul 2 19:46:29 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jul  2 20:46:12 2010 +0300| [2a6fdbb4b001bf8553e98b5ea75914aac84ad293] | committer: Rémi Denis-Courmont 

stats: can't set two values in the same union

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

 src/misc/stats.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/misc/stats.c b/src/misc/stats.c
index 8a360c4..2190f48 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 )



More information about the vlc-commits mailing list