GNOME Bugzilla – Bug 696540
Ring buffer released after parsing caps when setting caps
Last modified: 2013-04-15 06:22:22 UTC
Created attachment 239735 [details] [review] Patch In gstaudiobasesrc.c when setting src caps in gst_audio_base_src_setcaps(), the ringbuffer is released after parsing the caps which sets some fields inside spec and by releasing the ringbuffer, these data are then lost. This does not happen the first time setting the caps has the ringbuffer is considered has already release but any other time, this will fail. In the patch in attachment, I just moved releasing the ringbuffer before parsing the caps to avoid such issue.
commit 78a8531c7539dda7c22ca4b9bbd238c9c337005f Author: Paul HENRYS <visechelle@gmail.com> Date: Fri Mar 22 13:41:17 2013 +0100 audiobasesrc: Fix ringbuffer handling when settings caps 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