mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +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
26d1a22e90
commit
6f0eb92d72
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue