From d2a0b387175d47d96c40a00d8a0fe197d08c0419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 24 Aug 2020 19:37:15 +0300 Subject: [PATCH] appsrc: Wake up the create() function on caps changes This allows the new caps to be sent downstream as soon as possible instead of having to wait for the next buffer/buffer list. Part-of: --- gst-libs/gst/app/gstappsrc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst-libs/gst/app/gstappsrc.c b/gst-libs/gst/app/gstappsrc.c index 2df2e730b7..0fc806b80b 100644 --- a/gst-libs/gst/app/gstappsrc.c +++ b/gst-libs/gst/app/gstappsrc.c @@ -1457,6 +1457,9 @@ gst_app_src_set_caps (GstAppSrc * appsrc, const GstCaps * caps) } gst_queue_array_push_tail (priv->queue, new_caps); gst_caps_replace (&priv->last_caps, new_caps); + + if ((priv->wait_status & STREAM_WAITING)) + g_cond_broadcast (&priv->cond); } GST_OBJECT_UNLOCK (appsrc);