af_scaletempo: reset latency info when reconfiguring
commit6e24a77f3ce2b856c97258ef29b83f7bf7007283
authorUoti Urpala <uau@mplayer2.org>
Mon, 17 Sep 2012 15:44:20 +0000 (17 18:44 +0300)
committerUoti Urpala <uau@mplayer2.org>
Wed, 19 Sep 2012 14:15:59 +0000 (19 17:15 +0300)
tree22aeb1b1fdd1089d7c6129d6d1f69de12a8a2ce0
parent7952c1bbc3db89f0e66c39c67a10db290689e974
af_scaletempo: reset latency info when reconfiguring

af_scaletempo kept outdated values in the af->delay field after
reconfiguration until some audio was fed through the filter. This
could affect audio sync code after a playback speed change.
Additionally, in the special case speed=1 the code did not set the
af->mul field at all. Initialize both fields after reconfiguration.
libaf/af_scaletempo.c