mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
appsink: do not update preroll_caps unless the sink is prerolling
Just for consistency with the preroll_segment
This commit is contained in:
parent
41cb26b0e9
commit
c3e4d8ca6f
1 changed files with 2 additions and 1 deletions
|
@ -554,7 +554,8 @@ gst_app_sink_setcaps (GstBaseSink * sink, GstCaps * caps)
|
||||||
g_mutex_lock (&priv->mutex);
|
g_mutex_lock (&priv->mutex);
|
||||||
GST_DEBUG_OBJECT (appsink, "receiving CAPS");
|
GST_DEBUG_OBJECT (appsink, "receiving CAPS");
|
||||||
g_queue_push_tail (priv->queue, gst_event_new_caps (caps));
|
g_queue_push_tail (priv->queue, gst_event_new_caps (caps));
|
||||||
gst_caps_replace (&priv->preroll_caps, caps);
|
if (!priv->preroll)
|
||||||
|
gst_caps_replace (&priv->preroll_caps, caps);
|
||||||
g_mutex_unlock (&priv->mutex);
|
g_mutex_unlock (&priv->mutex);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue