[vlc-commits] aout: do not restart input if filter string is unchanged
Rémi Denis-Courmont
git at videolan.org
Sat May 24 07:04:10 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 24 13:03:25 2014 +0800| [1aaaece9535b3d751e9db2ec6766dee3c7516c79] | committer: Rémi Denis-Courmont
aout: do not restart input if filter string is unchanged
This avoids glitching when changing the equalizer bands from LibVLC.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1aaaece9535b3d751e9db2ec6766dee3c7516c79
---
src/audio_output/output.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/audio_output/output.c b/src/audio_output/output.c
index 04d84f4..3b6999c 100644
--- a/src/audio_output/output.c
+++ b/src/audio_output/output.c
@@ -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;
}
More information about the vlc-commits
mailing list