mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
gst: fix bad unlock when pool acquire fails
The mutexs was not locked so don't try to unlock.
This commit is contained in:
parent
78aaf6c0bc
commit
236ebeeb68
1 changed files with 4 additions and 4 deletions
|
|
@ -570,7 +570,7 @@ gst_pipewire_sink_render (GstBaseSink * bsink, GstBuffer * buffer)
|
|||
|
||||
pw_thread_loop_lock (pwsink->loop);
|
||||
if (pw_stream_get_state (pwsink->stream, &error) != PW_STREAM_STATE_STREAMING)
|
||||
goto done;
|
||||
goto done_unlock;
|
||||
|
||||
if (buffer->pool != GST_BUFFER_POOL_CAST (pwsink->pool)) {
|
||||
GstBuffer *b = NULL;
|
||||
|
|
@ -592,15 +592,15 @@ gst_pipewire_sink_render (GstBaseSink * bsink, GstBuffer * buffer)
|
|||
|
||||
pw_thread_loop_lock (pwsink->loop);
|
||||
if (pw_stream_get_state (pwsink->stream, &error) != PW_STREAM_STATE_STREAMING)
|
||||
goto done;
|
||||
goto done_unlock;
|
||||
}
|
||||
|
||||
GST_DEBUG ("push buffer");
|
||||
do_send_buffer (pwsink, buffer);
|
||||
|
||||
done:
|
||||
done_unlock:
|
||||
pw_thread_loop_unlock (pwsink->loop);
|
||||
|
||||
done:
|
||||
return res;
|
||||
|
||||
not_negotiated:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue