Commit 1aaaece9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

aout: do not restart input if filter string is unchanged

This avoids glitching when changing the equalizer bands from LibVLC.
parent ccdb1377
......@@ -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;
}
......
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