appsink: Signal condition when adding serialized events to the queue
Users might be waiting on any objects and the appsink should unblock the waiter and return the object in that case. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5985>
This commit is contained in:
parent
a8d8201dda
commit
2ccc8051b5
@ -979,6 +979,9 @@ gst_app_sink_event (GstBaseSink * sink, GstEvent * event)
|
||||
gst_queue_array_push_tail (priv->queue, gst_event_ref (event));
|
||||
gst_queue_status_info_push_event (&priv->queue_status_info);
|
||||
|
||||
if ((priv->wait_status & APP_WAITING))
|
||||
g_cond_signal (&priv->cond);
|
||||
|
||||
g_mutex_unlock (&priv->mutex);
|
||||
|
||||
if (callbacks && callbacks->callbacks.new_event) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user