audiomixer: Make sure to release the current buffer in reset()

If we didn't output the last one in aggregate because we were shutting down
earlier we might otherwise leak it.
This commit is contained in:
Sebastian Dröge 2014-12-23 12:15:50 +01:00
parent 8465c0915e
commit eefea80dae

View file

@ -709,6 +709,7 @@ gst_audiomixer_reset (GstAudioMixer * audiomixer)
{
audiomixer->offset = 0;
gst_caps_replace (&audiomixer->current_caps, NULL);
gst_buffer_replace (&audiomixer->current_buffer, NULL);
}
static gboolean