gst: check for NULL stream

The stream can already be closed when the buffers are recycled.

Fixes: #243
This commit is contained in:
Wim Taymans 2020-06-04 20:29:41 +02:00
parent 1c86ed8263
commit 1b4b8a9322

View file

@ -377,7 +377,8 @@ buffer_recycle (GstMiniObject *obj)
GST_LOG_OBJECT (obj, "recycle buffer");
pw_thread_loop_lock (src->loop);
pw_stream_queue_buffer (src->stream, data->b);
if (src->stream)
pw_stream_queue_buffer (src->stream, data->b);
pw_thread_loop_unlock (src->loop);
return FALSE;