From 4bbde64da6d3552af07df35618ccb38373cf3381 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 14 Dec 2009 21:17:57 +0100 Subject: audiorate: set DISCONT when resyncing (e.g. newsegment) --- gst/audiorate/gstaudiorate.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gst/audiorate') diff --git a/gst/audiorate/gstaudiorate.c b/gst/audiorate/gstaudiorate.c index fe18ab23b..d747681fe 100644 --- a/gst/audiorate/gstaudiorate.c +++ b/gst/audiorate/gstaudiorate.c @@ -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); -- cgit v1.2.3