mirror of https://github.com/mpv-player/mpv
af_rubberband: reset delay to 0 on reset
This fixes A-V drift on seeking
This commit is contained in:
parent
d4bbfb8453
commit
a10754f038
|
@ -167,6 +167,7 @@ static void process(struct mp_filter *f)
|
|||
if (eof) {
|
||||
mp_pin_in_write(f->ppins[1], MP_EOF_FRAME);
|
||||
rubberband_reset(p->rubber);
|
||||
p->rubber_delay = 0;
|
||||
TA_FREEP(&p->pending);
|
||||
p->sent_final = false;
|
||||
return;
|
||||
|
@ -263,6 +264,7 @@ static void reset(struct mp_filter *f)
|
|||
|
||||
if (p->rubber)
|
||||
rubberband_reset(p->rubber);
|
||||
p->rubber_delay = 0;
|
||||
p->sent_final = false;
|
||||
TA_FREEP(&p->pending);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue