flvmux: set the src segment position as running time
authorGuillaume Desmottes <guillaume.desmottes@onestream.live>
Wed, 11 Oct 2023 12:47:33 +0000 (14:47 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 11 Oct 2023 23:28:50 +0000 (00:28 +0100)
commit81178eab42c537fd9ec987ac20615ac34353140c
tree1e1ea784962df178415a891d0c5e7a782456b3e8
parentf223ea076d58d8a959a8a9823e4d2168b99f9745
flvmux: set the src segment position as running time

We were already converting the pad last timestamp to running time but
not the segment position.
This segment position is used by gst_aggregator_simple_get_next_time()
to compute the waiting time when aggregating.

Those waiting times were wrong in my live pipeline using the system
clock, resulting in the aggregator to never wait at all.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5465>
subprojects/gst-plugins-good/gst/flv/gstflvmux.c