summaryrefslogtreecommitdiff
path: root/gst/audiorate
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2009-12-14 21:17:57 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2009-12-15 19:49:28 +0100
commit4bbde64da6d3552af07df35618ccb38373cf3381 (patch)
treef313125e6fc5c78024114f1f2c9f5190f06a5a94 /gst/audiorate
parent56d453455428e0125472c08e66902e343ed99b7c (diff)
audiorate: set DISCONT when resyncing (e.g. newsegment)
Diffstat (limited to 'gst/audiorate')
-rw-r--r--gst/audiorate/gstaudiorate.c3
1 files changed, 3 insertions, 0 deletions
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);