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:
Sebastian Dröge 2014-12-17 19:51:32 +01:00
parent 26d1a22e90
commit 6f0eb92d72

View file

@ -597,6 +597,9 @@ gst_videoaggregator_src_setcaps (GstVideoAggregator * vagg, GstCaps * caps)
GST_VIDEO_AGGREGATOR_UNLOCK (vagg);
gst_aggregator_set_src_caps (agg, caps);
gst_aggregator_set_latency (agg, gst_util_uint64_scale (GST_SECOND,
GST_VIDEO_INFO_FPS_D (&info), GST_VIDEO_INFO_FPS_N (&info)),
GST_CLOCK_TIME_NONE);
GST_VIDEO_AGGREGATOR_LOCK (vagg);
}