audiorate: set DISCONT when resyncing (e.g. newsegment)

This commit is contained in:
Mark Nauwelaerts 2009-12-14 21:17:57 +01:00
parent 56d4534554
commit 4bbde64da6

View file

@ -519,6 +519,9 @@ gst_audio_rate_chain (GstPad * pad, GstBuffer * buf)
GST_DEBUG_OBJECT (audiorate, "resync to offset %" G_GINT64_FORMAT, pos);
/* resyncing is a discont */
audiorate->discont = TRUE;
audiorate->next_offset = pos;
audiorate->next_ts = gst_util_uint64_scale_int (audiorate->next_offset,
GST_SECOND, audiorate->rate);