From a27ff89d425bee89a42806d1ead8d14cdb05b8aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 22 Dec 2014 15:03:59 +0100 Subject: [PATCH] aggregator: Wake up the src thread after handling a latency query Due to changed latencies or changed live-ness we might have to adjust if we wait on a deadline at all and how long. --- gst-libs/gst/base/gstaggregator.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/base/gstaggregator.c b/gst-libs/gst/base/gstaggregator.c index 9c2e702dfc..887efbc8c5 100644 --- a/gst-libs/gst/base/gstaggregator.c +++ b/gst-libs/gst/base/gstaggregator.c @@ -1159,7 +1159,15 @@ _src_query (GstAggregator * self, GstQuery * query) } case GST_QUERY_LATENCY: { - return gst_aggregator_query_latency (self, query); + gboolean ret; + + ret = gst_aggregator_query_latency (self, query); + /* Wake up the src thread again, due to changed latencies + * or changed live-ness we might have to adjust if we wait + * on a deadline at all and how long. + */ + SRC_STREAM_BROADCAST (self); + return ret; } default: break;