Skip to content
Snippets Groups Projects
Commit 2b461b26 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

audiobargraph_v: messages do not contain a '@' anymore

parent d2d39937
No related branches found
No related tags found
No related merge requests found
......@@ -324,7 +324,6 @@ static int BarGraphCallback(vlc_object_t *p_this, char const *psz_var,
VLC_UNUSED(p_this); VLC_UNUSED(oldval);
filter_sys_t *p_sys = p_data;
BarGraph_t *p_BarGraph = &p_sys->p_BarGraph;
char* res = NULL;
vlc_mutex_lock(&p_sys->lock);
if (!strcmp(psz_var, CFG_PREFIX "x"))
......@@ -336,13 +335,8 @@ static int BarGraphCallback(vlc_object_t *p_this, char const *psz_var,
else if (!strcmp(psz_var, CFG_PREFIX "transparency"))
p_BarGraph->i_alpha = VLC_CLIP(newval.i_int, 0, 255);
else if (!strcmp(psz_var, CFG_PREFIX "i_values")) {
char *psz = xstrdup(newval.psz_string ? newval.psz_string : "");
// in case many answer are received at the same time, only keep one
res = strchr(psz, '@');
if (res)
*res = '\0';
parse_i_values(p_BarGraph, psz);
free(psz);
if (newval.psz_string)
parse_i_values(p_BarGraph, newval.psz_string);
Draw(p_BarGraph);
} else if (!strcmp(psz_var, CFG_PREFIX "alarm")) {
p_BarGraph->alarm = newval.b_bool;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment