[vlc-commits] audiobargraph_v: cosmetics
Rafaël Carré
git at videolan.org
Wed Apr 16 22:32:49 CEST 2014
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Apr 16 16:20:31 2014 +0200| [13d0590b9484514b043e5e0e51ef181167fff9dc] | committer: Rafaël Carré
audiobargraph_v: cosmetics
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=13d0590b9484514b043e5e0e51ef181167fff9dc
---
modules/video_filter/audiobargraph_v.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules/video_filter/audiobargraph_v.c b/modules/video_filter/audiobargraph_v.c
index 425e75d..a84a538 100644
--- a/modules/video_filter/audiobargraph_v.c
+++ b/modules/video_filter/audiobargraph_v.c
@@ -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_UNUSED(oldval);
- filter_sys_t *p_sys = (filter_sys_t *)p_data;
- BarGraph_t *p_BarGraph = &(p_sys->p_BarGraph);
+ filter_sys_t *p_sys = p_data;
+ BarGraph_t *p_BarGraph = &p_sys->p_BarGraph;
char* res = NULL;
vlc_mutex_lock(&p_sys->lock);
@@ -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 : "");
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
res = strchr(psz, '@');
if (res)
- *res = 0;
+ *res = '\0';
parse_i_values(p_BarGraph, psz);
free(psz);
LoadBarGraph(p_this,p_BarGraph);
More information about the vlc-commits
mailing list