mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
audiobuffersplit: disable max-silence-time if set to 0
According to the property documentation max-silence-time is supposed to be disabled when set to 0 but it was not. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5442>
This commit is contained in:
parent
134a66277e
commit
dd0896f05a
1 changed files with 1 additions and 1 deletions
|
@ -572,7 +572,7 @@ gst_audio_buffer_split_handle_discont (GstAudioBufferSplit * self,
|
||||||
GstClockTime silence_time =
|
GstClockTime silence_time =
|
||||||
gst_util_uint64_scale (silence_samples, GST_SECOND, rate);
|
gst_util_uint64_scale (silence_samples, GST_SECOND, rate);
|
||||||
|
|
||||||
if (silence_time > self->max_silence_time) {
|
if (silence_time > self->max_silence_time && self->max_silence_time != 0) {
|
||||||
GST_DEBUG_OBJECT (self,
|
GST_DEBUG_OBJECT (self,
|
||||||
"Not inserting %" G_GUINT64_FORMAT " samples of silence (%"
|
"Not inserting %" G_GUINT64_FORMAT " samples of silence (%"
|
||||||
GST_TIME_FORMAT " exceeds maximum %" GST_TIME_FORMAT ")",
|
GST_TIME_FORMAT " exceeds maximum %" GST_TIME_FORMAT ")",
|
||||||
|
|
Loading…
Reference in a new issue