mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
aggregator: Add function to allow subclasses to set their own latency
For audiomixer this is one blocksize, for videoaggregator this should be the duration of one output frame.
This commit is contained in:
parent
46f713c598
commit
06f6d3c65c
1 changed files with 3 additions and 0 deletions
|
@ -1378,6 +1378,9 @@ gst_audiomixer_aggregate (GstAggregator * agg, gboolean timeout)
|
|||
|
||||
if (audiomixer->send_caps) {
|
||||
gst_aggregator_set_src_caps (agg, audiomixer->current_caps);
|
||||
gst_aggregator_set_latency (agg,
|
||||
gst_util_uint64_scale (audiomixer->blocksize, GST_SECOND,
|
||||
GST_AUDIO_INFO_RATE (&audiomixer->info)), GST_CLOCK_TIME_NONE);
|
||||
|
||||
if (agg->segment.rate > 0.0)
|
||||
agg->segment.position = agg->segment.start;
|
||||
|
|
Loading…
Reference in a new issue