rtpjitterbuffer: Clear last_pt on flush-stop.
authorJan Schmidt <jan@centricular.com>
Tue, 22 Apr 2014 07:07:38 +0000 (17:07 +1000)
committerJan Schmidt <jan@centricular.com>
Wed, 23 Apr 2014 08:54:16 +0000 (18:54 +1000)
Otherwise, we don't recheck the buffer caps for clock-rate
properly on the next chain.

gst/rtpmanager/gstrtpjitterbuffer.c

index 06ecaf2befb1e9ba3ca8cd566a6911064789adb4..17d15197d650a081e4b1cfb3df16cc84a8e111d0 100644 (file)
@@ -1175,6 +1175,7 @@ gst_rtp_jitter_buffer_flush_stop (GstRtpJitterBuffer * jitterbuffer)
   priv->packet_spacing = 0;
   priv->next_in_seqnum = -1;
   priv->clock_rate = -1;
+  priv->last_pt = -1;
   priv->eos = FALSE;
   priv->estimated_eos = -1;
   priv->last_elapsed = 0;