mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
shmsink: Don't block on EOS in non-blocking mode
This commit is contained in:
parent
c5797b06ca
commit
663a8eac54
1 changed files with 2 additions and 1 deletions
|
@ -542,7 +542,8 @@ gst_shm_sink_event (GstBaseSink * bsink, GstEvent * event)
|
|||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_EOS:
|
||||
GST_OBJECT_LOCK (self);
|
||||
while (sp_writer_pending_writes (self->pipe) && !self->unlock)
|
||||
while (self->wait_for_connection && sp_writer_pending_writes (self->pipe)
|
||||
&& !self->unlock)
|
||||
g_cond_wait (self->cond, GST_OBJECT_GET_LOCK (self));
|
||||
GST_OBJECT_UNLOCK (self);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue