Skip to content

Commit

Permalink
vumeter: cast structs to void-pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Aug 8, 2015
1 parent 43c8e03 commit 7d43d38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/vumeter/vumeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static int decode_update(struct aufilt_dec_st **stp, void **ctx,

static int encode(struct aufilt_enc_st *st, int16_t *sampv, size_t *sampc)
{
struct vumeter_enc *vu = (struct vumeter_enc *)st;
struct vumeter_enc *vu = (void *)st;

vu->avg_rec = calc_avg_s16(sampv, *sampc);
vu->started = true;
Expand All @@ -168,7 +168,7 @@ static int encode(struct aufilt_enc_st *st, int16_t *sampv, size_t *sampc)

static int decode(struct aufilt_dec_st *st, int16_t *sampv, size_t *sampc)
{
struct vumeter_dec *vu = (struct vumeter_dec *)st;
struct vumeter_dec *vu = (void *)st;

vu->avg_play = calc_avg_s16(sampv, *sampc);
vu->started = true;
Expand Down

0 comments on commit 7d43d38

Please sign in to comment.