Commit 8d5e04c0 authored by Rafaël Carré's avatar Rafaël Carré

audiobargraph_v: more appropriate function name

parent 062203a6
...@@ -236,12 +236,9 @@ static void DrawNumber(plane_t *p, int h, const uint8_t data[5], int l) ...@@ -236,12 +236,9 @@ static void DrawNumber(plane_t *p, int h, const uint8_t data[5], int l)
} }
} }
/***************************************************************************** /*****************************************************************************
* LoadImage: creates and returns the bar graph image * Draw: creates and returns the bar graph image
*****************************************************************************/ *****************************************************************************/
#ifdef LoadImage static void Draw(BarGraph_t *b)
# undef LoadImage
#endif
static void LoadImage(BarGraph_t *b)
{ {
int nbChannels = b->nbChannels; int nbChannels = b->nbChannels;
int scale = b->scale; int scale = b->scale;
...@@ -343,13 +340,13 @@ static int BarGraphCallback(vlc_object_t *p_this, char const *psz_var, ...@@ -343,13 +340,13 @@ static int BarGraphCallback(vlc_object_t *p_this, char const *psz_var,
*res = '\0'; *res = '\0';
parse_i_values(p_BarGraph, psz); parse_i_values(p_BarGraph, psz);
free(psz); free(psz);
LoadImage(p_BarGraph); Draw(p_BarGraph);
} else if (!strcmp(psz_var, "audiobargraph_v-alarm")) { } else if (!strcmp(psz_var, "audiobargraph_v-alarm")) {
p_BarGraph->alarm = newval.b_bool; p_BarGraph->alarm = newval.b_bool;
LoadImage(p_BarGraph); Draw(p_BarGraph);
} else if (!strcmp(psz_var, "audiobargraph_v-barWidth")) { } else if (!strcmp(psz_var, "audiobargraph_v-barWidth")) {
p_BarGraph->barWidth = newval.i_int; p_BarGraph->barWidth = newval.i_int;
LoadImage(p_BarGraph); Draw(p_BarGraph);
} }
p_sys->b_spu_update = true; p_sys->b_spu_update = true;
vlc_mutex_unlock(&p_sys->lock); vlc_mutex_unlock(&p_sys->lock);
......
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