mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 19:05:37 +00:00
audioaggregator: Use 1.0 style buffer allocation
This commit is contained in:
parent
74d7944cbb
commit
ee1a50ef70
1 changed files with 2 additions and 2 deletions
|
@ -943,8 +943,8 @@ static GstBuffer *
|
||||||
gst_audio_aggregator_create_output_buffer (GstAudioAggregator * aagg,
|
gst_audio_aggregator_create_output_buffer (GstAudioAggregator * aagg,
|
||||||
guint num_frames)
|
guint num_frames)
|
||||||
{
|
{
|
||||||
GstBuffer *outbuf = gst_buffer_new_and_alloc (num_frames *
|
GstBuffer *outbuf = gst_buffer_new_allocate (NULL, num_frames *
|
||||||
GST_AUDIO_INFO_BPF (&aagg->info));
|
GST_AUDIO_INFO_BPF (&aagg->info), NULL);
|
||||||
GstMapInfo outmap;
|
GstMapInfo outmap;
|
||||||
|
|
||||||
gst_buffer_map (outbuf, &outmap, GST_MAP_WRITE);
|
gst_buffer_map (outbuf, &outmap, GST_MAP_WRITE);
|
||||||
|
|
Loading…
Reference in a new issue