projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5caf89d
)
aggregator: Also include the subclass latency in the result of the latency query
author
Sebastian Dröge
<sebastian@centricular.com>
Mon, 22 Dec 2014 21:19:52 +0000
(22:19 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 2 Dec 2017 15:10:26 +0000
(15:10 +0000)
libs/gst/base/gstaggregator.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gstaggregator.c
b/libs/gst/base/gstaggregator.c
index
58a134b
..
5055d24
100644
(file)
--- a/
libs/gst/base/gstaggregator.c
+++ b/
libs/gst/base/gstaggregator.c
@@
-1101,6
+1101,13
@@
gst_aggregator_query_latency (GstAggregator * self, GstQuery * query)
data.max += self->latency;
}
+ if (GST_CLOCK_TIME_IS_VALID (self->priv->sub_latency_min)
+ && GST_CLOCK_TIME_IS_VALID (data.min))
+ data.min += self->priv->sub_latency_min;
+ if (GST_CLOCK_TIME_IS_VALID (self->priv->sub_latency_max)
+ && GST_CLOCK_TIME_IS_VALID (data.max))
+ data.max += self->priv->sub_latency_max;
+
GST_DEBUG_OBJECT (self, "configured latency live:%s min:%" G_GINT64_FORMAT
" max:%" G_GINT64_FORMAT, data.live ? "true" : "false", data.min,
data.max);