mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
gst: check for NULL stream
The stream can already be closed when the buffers are recycled. Fixes: #243
This commit is contained in:
parent
1c86ed8263
commit
1b4b8a9322
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue