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 7c575af6df
commit 0e8604f4ee

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