rtpjitterbuffer: reset just a bit more upon flush_stop
authorMark Nauwelaerts <mnauw@users.sourceforge.net>
Sun, 13 Sep 2015 13:41:38 +0000 (15:41 +0200)
committerMark Nauwelaerts <mnauw@users.sourceforge.net>
Sun, 13 Sep 2015 13:42:06 +0000 (15:42 +0200)
gst/rtpmanager/gstrtpjitterbuffer.c

index 81604cf078bf362e0873fed72afca73328a7dc2e..433e61d7c5dbedfc93decf3ed227cfba08843b3e 100644 (file)
@@ -1315,6 +1315,7 @@ gst_rtp_jitter_buffer_flush_stop (GstRtpJitterBuffer * jitterbuffer)
   priv->avg_jitter = 0;
   priv->last_dts = -1;
   priv->last_rtptime = -1;
+  priv->last_in_dts = 0;
   GST_DEBUG_OBJECT (jitterbuffer, "flush and reset jitterbuffer");
   rtp_jitter_buffer_flush (priv->jbuf, (GFunc) free_item, NULL);
   rtp_jitter_buffer_disable_buffering (priv->jbuf, FALSE);