mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-11 08:52:39 +00:00
appsink: fix initial pile-up of caps events
appsink was queuing the caps event both in its GstBaseSinkClass.set_caps() and its GstBaseSinkClass.sink_event() implementation, but only signaling new_event from `sink_event`. This caused `new_event` callbacks to start lagging by one. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7749>
This commit is contained in:
parent
727424452a
commit
33da5f0d5d
1 changed files with 0 additions and 3 deletions
|
@ -868,9 +868,6 @@ gst_app_sink_setcaps (GstBaseSink * sink, GstCaps * caps)
|
|||
g_mutex_lock (&priv->mutex);
|
||||
GST_DEBUG_OBJECT (appsink, "receiving CAPS");
|
||||
|
||||
gst_vec_deque_push_tail (priv->queue, gst_event_new_caps (caps));
|
||||
gst_queue_status_info_push_event (&priv->queue_status_info);
|
||||
|
||||
if (!priv->preroll_buffer)
|
||||
gst_caps_replace (&priv->preroll_caps, caps);
|
||||
g_mutex_unlock (&priv->mutex);
|
||||
|
|
Loading…
Reference in a new issue