ringbuffer was released after setting values to its spec field
in gst_audio_base_src_setcaps(). This led to failure in case
gst_audio_base_src_setcaps() is called more than one time.
https://bugzilla.gnome.org/show_bug.cgi?id=696540
GstAudioRingBufferSpec *spec;
gint bpf, rate;
+ GST_DEBUG ("release old ringbuffer");
+ gst_audio_ring_buffer_release (src->ringbuffer);
+
spec = &src->ringbuffer->spec;
spec->buffer_time = src->buffer_time;
GST_OBJECT_UNLOCK (src);
- GST_DEBUG ("release old ringbuffer");
-
- gst_audio_ring_buffer_release (src->ringbuffer);
-
gst_audio_ring_buffer_debug_spec_buff (spec);
GST_DEBUG ("acquire new ringbuffer");