mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-05-13 19:58:57 +00:00
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.
This commit is contained in:
parent
cb4952fc2e
commit
38e59ec75d
1 changed files with 0 additions and 6 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue