adaptivedemux2: track: Fix buffering time calc before output
authorJan Schmidt <jan@centricular.com>
Tue, 21 Jun 2022 17:35:03 +0000 (03:35 +1000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 28 Jun 2022 18:34:31 +0000 (18:34 +0000)
commit61e4f058effb2ad78124c5e6236d0b0f0aea8af5
tree0df3d62c7faff55f1debfe8f7f86f30678320099
parent16a04f7697df2d3a31b8163d21a67e36bc4433ee
adaptivedemux2: track: Fix buffering time calc before output

Use the lowest track input time as the output
time when calculating track buffering levels
before anything has been dequeued.

Fixes multi-period DASH not advancing to the
next period in some cases.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2650>
subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-track.c