Skip to content

Commit

Permalink
aout: do not restart input if filter string is unchanged
Browse files Browse the repository at this point in the history
This avoids glitching when changing the equalizer bands from LibVLC.
  • Loading branch information
Rémi Denis-Courmont committed May 24, 2014
1 parent ccdb137 commit 1aaaece
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/audio_output/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ static int aout_GainNotify (audio_output_t *aout, float gain)
static int FilterCallback (vlc_object_t *obj, const char *var,
vlc_value_t prev, vlc_value_t cur, void *data)
{
aout_InputRequestRestart ((audio_output_t *)obj);
(void) var; (void) prev; (void) cur; (void) data;
if (strcmp(prev.psz_string, cur.psz_string))
aout_InputRequestRestart ((audio_output_t *)obj);
(void) var; (void) data;
return VLC_SUCCESS;
}

Expand Down

0 comments on commit 1aaaece

Please sign in to comment.