GNOME Bugzilla – Bug 361634
sink->ringbuffer NULL in BaseAudioSink's setcaps()
Last modified: 2006-10-13 14:15:41 UTC
When switching the audio sink to a pipeline BaseAudioSink's setcaps() was called with NULL sink->ringbuffer. Adding a NULL check prevents the segfault, but I'm not sure if that is the proper fix, or even if the real bug is actually somewhere else.
Created attachment 74542 [details] [review] Check if sink->ringbuffer is NULL Return early from setcaps() if sink->ringbuffer is NULL.
The real bug is not in baseaudiosink but due to Bug #339326. Will apply patch for now until the real issue is fixed.
* gst-libs/gst/audio/gstbaseaudiosink.c: (gst_base_audio_sink_setcaps): Don't crash when ringbuffer is not yet created. Patch by: Ville Syrjala <ville dot syrjala at movial dot fi> Fixes #361634.