aggregator: Wake up the src thread after handling a latency query
authorSebastian Dröge <sebastian@centricular.com>
Mon, 22 Dec 2014 14:03:59 +0000 (15:03 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:26 +0000 (15:10 +0000)
Due to changed latencies or changed live-ness we might have to
adjust if we wait on a deadline at all and how long.

libs/gst/base/gstaggregator.c

index 9c2e702..887efbc 100644 (file)
@@ -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;