audio: Use new AudioFormatInfo::fill_silence function

The function is renamed to be properly associated with AudioFormatInfo
(its instance) instead of AudioFormat (an unrelated enum), see [1] for
the rename itself.

[1]: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/940
This commit is contained in:
Marijn Suijten 2020-11-25 17:52:42 +01:00 committed by Sebastian Dröge
parent d4df91cd9b
commit dc90a3d3cf
2 changed files with 2 additions and 2 deletions

View file

@ -588,7 +588,7 @@ gst_audio_buffer_split_handle_discont (GstAudioBufferSplit * self,
silence = gst_buffer_new_and_alloc (n_samples * bpf);
GST_BUFFER_FLAG_SET (silence, GST_BUFFER_FLAG_GAP);
gst_buffer_map (silence, &map, GST_MAP_WRITE);
gst_audio_format_fill_silence (info, map.data, map.size);
gst_audio_format_info_fill_silence (info, map.data, map.size);
gst_buffer_unmap (silence, &map);
gst_adapter_push (self->adapter, silence);

View file

@ -402,7 +402,7 @@ gst_inter_audio_src_create (GstBaseSrc * src, guint64 offset, guint size,
period_samples - n);
mem = gst_allocator_alloc (NULL, (period_samples - n) * bpf, NULL);
if (gst_memory_map (mem, &map, GST_MAP_WRITE)) {
gst_audio_format_fill_silence (interaudiosrc->info.finfo, map.data,
gst_audio_format_info_fill_silence (interaudiosrc->info.finfo, map.data,
map.size);
gst_memory_unmap (mem, &map);
}