mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +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/5632>
This commit is contained in:
parent
8041686539
commit
c44e6be7de
1 changed files with 1 additions and 1 deletions
|
@ -572,7 +572,7 @@ gst_audio_buffer_split_handle_discont (GstAudioBufferSplit * self,
|
|||
GstClockTime silence_time =
|
||||
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,
|
||||
"Not inserting %" G_GUINT64_FORMAT " samples of silence (%"
|
||||
GST_TIME_FORMAT " exceeds maximum %" GST_TIME_FORMAT ")",
|
||||
|
|
Loading…
Reference in a new issue