[gst-cvs] gst-plugins-base: baseaudiosink: no need to cause discont when clipping

Wim Taymans wtay at kemper.freedesktop.org
Tue Jun 9 03:10:26 PDT 2009


Module: gst-plugins-base
Branch: master
Commit: 38e59ec75dd44f2ea508606a50a97a14ac000188
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=38e59ec75dd44f2ea508606a50a97a14ac000188

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Tue Jun  9 12:09:15 2009 +0200

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 files changed, 0 insertions(+), 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 */





More information about the Gstreamer-commits mailing list