From 38e59ec75dd44f2ea508606a50a97a14ac000188 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 9 Jun 2009 12:09:15 +0200 Subject: [PATCH] baseaudiosink: no need to cause discont when clipping Remove the discont-when-clipping hack now that basesink provides us with correctly clipped samples when stepping. --- gst-libs/gst/audio/gstbaseaudiosink.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gst-libs/gst/audio/gstbaseaudiosink.c b/gst-libs/gst/audio/gstbaseaudiosink.c index af712c4..38c40e4 100644 --- a/gst-libs/gst/audio/gstbaseaudiosink.c +++ b/gst-libs/gst/audio/gstbaseaudiosink.c @@ -1327,9 +1327,6 @@ gst_base_audio_sink_render (GstBaseSink * bsink, GstBuffer * buf) samples -= diff; data += diff * bps; time = ctime; - /* don't align if we clipped */ - if (bsink->segment.rate >= 0.0) - sink->next_sample = -1; } diff = stop - cstop; if (diff > 0) { @@ -1339,9 +1336,6 @@ gst_base_audio_sink_render (GstBaseSink * bsink, GstBuffer * buf) G_GUINT64_FORMAT " samples", GST_TIME_ARGS (cstop), diff); samples -= diff; stop = cstop; - /* don't align if we clipped */ - if (bsink->segment.rate <= 0.0) - sink->next_sample = -1; } /* figure out how to sync */ -- 2.7.4