Commit 13d0590b authored by Rafaël Carré's avatar Rafaël Carré

audiobargraph_v: cosmetics

parent 8abe10b5
...@@ -571,8 +571,8 @@ static int BarGraphCallback(vlc_object_t *p_this, char const *psz_var, ...@@ -571,8 +571,8 @@ static int BarGraphCallback(vlc_object_t *p_this, char const *psz_var,
vlc_value_t oldval, vlc_value_t newval, void *p_data) vlc_value_t oldval, vlc_value_t newval, void *p_data)
{ {
VLC_UNUSED(oldval); VLC_UNUSED(oldval);
filter_sys_t *p_sys = (filter_sys_t *)p_data; filter_sys_t *p_sys = p_data;
BarGraph_t *p_BarGraph = &(p_sys->p_BarGraph); BarGraph_t *p_BarGraph = &p_sys->p_BarGraph;
char* res = NULL; char* res = NULL;
vlc_mutex_lock(&p_sys->lock); vlc_mutex_lock(&p_sys->lock);
...@@ -592,12 +592,10 @@ static int BarGraphCallback(vlc_object_t *p_this, char const *psz_var, ...@@ -592,12 +592,10 @@ static int BarGraphCallback(vlc_object_t *p_this, char const *psz_var,
char *psz = xstrdup(newval.psz_string ? newval.psz_string : ""); char *psz = xstrdup(newval.psz_string ? newval.psz_string : "");
free(p_BarGraph->i_values); free(p_BarGraph->i_values);
//p_BarGraph->i_values = NULL;
//p_BarGraph->nbChannels = 0;
// in case many answer are received at the same time, only keep one // in case many answer are received at the same time, only keep one
res = strchr(psz, '@'); res = strchr(psz, '@');
if (res) if (res)
*res = 0; *res = '\0';
parse_i_values(p_BarGraph, psz); parse_i_values(p_BarGraph, psz);
free(psz); free(psz);
LoadBarGraph(p_this,p_BarGraph); LoadBarGraph(p_this,p_BarGraph);
......
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