Commit 38e59ec7 authored by Wim Taymans's avatar Wim Taymans
Browse files

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.
parent cb4952fc
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment