mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 23:18:47 +00:00
rtpbin: Convert clock-base to extended RTP timestamp correctly
It's not in the same period as the current RTP base time but always in the very first period. This avoids using it again at a much later time. The code in question is only triggered with rtcp-sync=rtp-info. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6639>
This commit is contained in:
parent
d2b00b045a
commit
93f93847e8
1 changed files with 2 additions and 3 deletions
|
@ -1588,13 +1588,12 @@ gst_rtp_bin_associate (GstRtpBin * bin, GstRtpBinStream * stream, guint8 len,
|
|||
min = rtp_min = G_MAXINT64;
|
||||
use_rtp = FALSE;
|
||||
if (rtcp_sync == GST_RTP_BIN_RTCP_SYNC_RTP) {
|
||||
guint64 ext_base;
|
||||
guint64 ext_base = -1;
|
||||
|
||||
use_rtp = TRUE;
|
||||
/* signed version for convenience */
|
||||
clock_base = base_rtptime;
|
||||
/* deal with possible wrap-around */
|
||||
ext_base = base_rtptime;
|
||||
/* convert to extended RTP time */
|
||||
rtp_clock_base = gst_rtp_buffer_ext_timestamp (&ext_base, rtp_clock_base);
|
||||
/* sanity check; base rtp and provided clock_base should be close */
|
||||
if (rtp_clock_base >= clock_base) {
|
||||
|
|
Loading…
Reference in a new issue