audioaggregator: Use 1.0 style buffer allocation
authorOlivier Crête <olivier.crete@collabora.com>
Wed, 22 Jul 2015 23:26:42 +0000 (19:26 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Wed, 22 Jul 2015 23:30:12 +0000 (19:30 -0400)
gst/audiomixer/gstaudioaggregator.c

index 38e8709..cba57ee 100644 (file)
@@ -943,8 +943,8 @@ static GstBuffer *
 gst_audio_aggregator_create_output_buffer (GstAudioAggregator * aagg,
     guint num_frames)
 {
-  GstBuffer *outbuf = gst_buffer_new_and_alloc (num_frames *
-      GST_AUDIO_INFO_BPF (&aagg->info));
+  GstBuffer *outbuf = gst_buffer_new_allocate (NULL, num_frames *
+      GST_AUDIO_INFO_BPF (&aagg->info), NULL);
   GstMapInfo outmap;
 
   gst_buffer_map (outbuf, &outmap, GST_MAP_WRITE);