Commit 2a6fdbb4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

parent e284f240
...@@ -102,7 +102,7 @@ int stats_Get( vlc_object_t *p_this, counter_t *p_counter, vlc_value_t *val ) ...@@ -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 ) 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; return VLC_EGENERIC;
} }
...@@ -118,7 +118,7 @@ int stats_Get( vlc_object_t *p_this, counter_t *p_counter, vlc_value_t *val ) ...@@ -118,7 +118,7 @@ int stats_Get( vlc_object_t *p_this, counter_t *p_counter, vlc_value_t *val )
/* Not ready yet */ /* Not ready yet */
if( p_counter->i_samples < 2 ) if( p_counter->i_samples < 2 )
{ {
val->i_int = 0; val->f_float = 0.0; val->i_int = 0;
return VLC_EGENERIC; return VLC_EGENERIC;
} }
if( p_counter->i_type == VLC_VAR_INTEGER ) if( p_counter->i_type == VLC_VAR_INTEGER )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment