baseaudiosink: no need to cause discont when clipping
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 9 Jun 2009 10:09:15 +0000 (12:09 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 9 Jun 2009 10:09:15 +0000 (12:09 +0200)
Remove the discont-when-clipping hack now that basesink provides us with
correctly clipped samples when stepping.

gst-libs/gst/audio/gstbaseaudiosink.c

index af712c4..38c40e4 100644 (file)
@@ -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 */