mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
d4df91cd9b
commit
dc90a3d3cf
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue