From: Sebastian Dröge Date: Mon, 22 Dec 2014 14:03:59 +0000 (+0100) Subject: aggregator: Wake up the src thread after handling a latency query X-Git-Tag: 1.16.2~574^2~179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7240852e5508021442c3c1aa8e0f33b8bd98f778;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/libs/gst/base/gstaggregator.c b/libs/gst/base/gstaggregator.c index 9c2e702..887efbc 100644 --- a/libs/gst/base/gstaggregator.c +++ b/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;