[gst-cvs] gst-plugins-base: audiorate: set DISCONT when resyncing (e.g. newsegment)
Mark Nauwelaerts
mnauw at kemper.freedesktop.org
Tue Dec 15 11:00:04 PST 2009
Module: gst-plugins-base
Branch: master
Commit: 4bbde64da6d3552af07df35618ccb38373cf3381
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=4bbde64da6d3552af07df35618ccb38373cf3381
Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date: Mon Dec 14 21:17:57 2009 +0100
audiorate: set DISCONT when resyncing (e.g. newsegment)
---
gst/audiorate/gstaudiorate.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gst/audiorate/gstaudiorate.c b/gst/audiorate/gstaudiorate.c
index fe18ab2..d747681 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);
More information about the Gstreamer-commits
mailing list