rtpgstpay: Don't push packets before the first input buffer is received
authorSebastian Dröge <sebastian@centricular.com>
Wed, 20 Apr 2022 14:35:29 +0000 (17:35 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 27 Apr 2022 11:55:17 +0000 (11:55 +0000)
commited425e2785e96b8c1385e4cad7f0df16afb19f42
treec133ad48edd9f575989f4e68d2c633ee35ec53c5
parenta03db32bbe45059df5dbb130a2b52cc5514e09ed
rtpgstpay: Don't push packets before the first input buffer is received

It's not possible to create a valid RTP timestamp for them, which would
cause a potentially very big RTP timestamp discontinuity between those
first packets (created from initial events) and the packet based on the
first input buffer.

As a side-effect, also simplify the packet aggregation code a bit and
work with only a single level of buffer lists.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1157

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2250>
subprojects/gst-plugins-good/gst/rtp/gstrtpgstpay.c
subprojects/gst-plugins-good/gst/rtp/gstrtpgstpay.h