mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
audiobasesrc: posting errors should be always be safe
Don't try to signal an error in the ringbuffer if it hasn't been allocated yet. https://bugzilla.gnome.org/show_bug.cgi?id=794611
This commit is contained in:
parent
baadc3b302
commit
b5698995f1
1 changed files with 1 additions and 1 deletions
|
@ -1213,7 +1213,7 @@ gst_audio_base_src_post_message (GstElement * element, GstMessage * message)
|
|||
GstAudioBaseSrc *src = GST_AUDIO_BASE_SRC (element);
|
||||
gboolean ret;
|
||||
|
||||
if (GST_MESSAGE_TYPE (message) == GST_MESSAGE_ERROR) {
|
||||
if (GST_MESSAGE_TYPE (message) == GST_MESSAGE_ERROR && src->ringbuffer) {
|
||||
GstAudioRingBuffer *ringbuffer;
|
||||
|
||||
GST_INFO_OBJECT (element, "subclass posted error");
|
||||
|
|
Loading…
Reference in a new issue