audioloudnorm: Drain on segment event

Otherwise output buffer and segment would not be serialized as expected
This commit is contained in:
Seungha Yang 2022-06-20 21:54:36 +09:00
parent 1ca75c31ae
commit 263ccbc64a

View file

@ -1637,7 +1637,7 @@ impl AudioLoudNorm {
}
}
}
EventView::Eos(_) => {
EventView::Eos(_) | EventView::Segment(_) => {
let mut state = self.state.borrow_mut();
let mut outbuf = None;
if let Some(ref mut state) = &mut *state {