summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Radizi <patrickr@axis.com>2018-02-14 16:38:07 +0100
committerSebastian Dröge <sebastian@centricular.com>2018-02-15 10:05:39 +0200
commit364dbb5fc7b9b4c68f87c943e573e7292c350a14 (patch)
treeb44d547e414e191fe8cff1ef95ea8c7daa9d79f3
parent072c070e6c71f2bb2890e11b8829657cdf8b730e (diff)
rtpjitterbuffer: allow timestamps to move backwards
The original solution for #784002 incorrectly assumed that timestamps may not move backwards and changed timestamps that did so. https://bugzilla.gnome.org/show_bug.cgi?id=784002
-rw-r--r--gst/rtpmanager/gstrtpjitterbuffer.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c
index 552c8874f..678210be9 100644
--- a/gst/rtpmanager/gstrtpjitterbuffer.c
+++ b/gst/rtpmanager/gstrtpjitterbuffer.c
@@ -3477,19 +3477,6 @@ pop_and_push_next (GstRtpJitterBuffer * jitterbuffer, guint seqnum)
/* update the elapsed time when we need to check against the npt stop time. */
update_estimated_eos (jitterbuffer, item);
- /* verify that an offset has not caused time stamps to go backwards, if so
- * handle by reusing the previous timestamp */
- if (priv->last_out_time != GST_CLOCK_TIME_NONE &&
- GST_BUFFER_PTS (outbuf) < priv->last_out_time) {
- GST_DEBUG_OBJECT (jitterbuffer, "buffer PTS %" GST_TIME_FORMAT
- " older than preceding PTS %" GST_TIME_FORMAT
- " adjusting to %" GST_TIME_FORMAT,
- GST_TIME_ARGS (GST_BUFFER_PTS (outbuf)),
- GST_TIME_ARGS (priv->last_out_time),
- GST_TIME_ARGS (priv->last_out_time));
- GST_BUFFER_PTS (outbuf) = priv->last_out_time;
- }
-
priv->last_pts = pts;
priv->last_out_time = GST_BUFFER_PTS (outbuf);
break;