mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
audioresample: relax discont checking slightly
This commit is contained in:
parent
a7cf165289
commit
93d68ec77d
1 changed files with 3 additions and 1 deletions
|
@ -957,8 +957,10 @@ gst_audio_resample_check_discont (GstAudioResample * resample, GstBuffer * buf)
|
|||
/* many elements generate imperfect streams due to rounding errors, so we
|
||||
* permit a small error (up to one sample) without triggering a filter
|
||||
* flush/restart (if triggered incorrectly, this will be audible) */
|
||||
/* allow even up to more samples, since sink is not so strict anyway,
|
||||
* so give that one a chance to handle this as configured */
|
||||
delta = ABS ((gint64) (offset - resample->samples_in));
|
||||
if (delta <= 1)
|
||||
if (delta <= (resample->inrate >> 5))
|
||||
return FALSE;
|
||||
|
||||
GST_WARNING_OBJECT (resample,
|
||||
|
|
Loading…
Reference in a new issue