From a2f1aa30c8a3d96b0b7ebcf6e3c04bc8b1cc630f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Wed, 21 Jan 2015 18:47:40 -0500 Subject: [PATCH] audiomixer: Clear GstAudioInfo the the caps When clearing the caps, also clear the matching GstAudioInfo https://bugzilla.gnome.org/show_bug.cgi?id=742684 --- gst/audiomixer/gstaudiomixer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/audiomixer/gstaudiomixer.c b/gst/audiomixer/gstaudiomixer.c index 44ec1550a4..179c186286 100644 --- a/gst/audiomixer/gstaudiomixer.c +++ b/gst/audiomixer/gstaudiomixer.c @@ -724,6 +724,7 @@ gst_audiomixer_reset (GstAudioMixer * audiomixer) audiomixer->offset = 0; agg->segment.position = -1; + gst_audio_info_init (&audiomixer->info); gst_caps_replace (&audiomixer->current_caps, NULL); gst_buffer_replace (&audiomixer->current_buffer, NULL); }