From: Sebastian Dröge Date: Mon, 23 Jul 2012 08:30:40 +0000 (+0200) Subject: vorbis: Update for audio base classes API changes X-Git-Tag: 1.19.3~511^2~6150 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d830cfbd89048bad4f06228555f810a6a3d6ce4;p=platform%2Fupstream%2Fgstreamer.git vorbis: Update for audio base classes API changes --- diff --git a/ext/vorbis/gstvorbisdec.c b/ext/vorbis/gstvorbisdec.c index b14d2d2..680ad58 100644 --- a/ext/vorbis/gstvorbisdec.c +++ b/ext/vorbis/gstvorbisdec.c @@ -478,7 +478,7 @@ vorbis_handle_data_packet (GstVorbisDec * vd, ogg_packet * packet, sample_count, size); /* alloc buffer for it */ - out = gst_buffer_new_allocate (NULL, size, NULL); + out = gst_audio_decoder_allocate_output_buffer (GST_AUDIO_DECODER (vd), size); gst_buffer_map (out, &map, GST_MAP_WRITE); /* get samples ready for reading now, should be sample_count */ diff --git a/ext/vorbis/gstvorbisenc.c b/ext/vorbis/gstvorbisenc.c index e9cd9fd..870a9bf5 100644 --- a/ext/vorbis/gstvorbisenc.c +++ b/ext/vorbis/gstvorbisenc.c @@ -561,7 +561,9 @@ gst_vorbis_enc_buffer_from_header_packet (GstVorbisEnc * vorbisenc, { GstBuffer *outbuf; - outbuf = gst_buffer_new_and_alloc (packet->bytes); + outbuf = + gst_audio_encoder_allocate_output_buffer (GST_AUDIO_ENCODER (vorbisenc), + packet->bytes); gst_buffer_fill (outbuf, 0, packet->packet, packet->bytes); GST_BUFFER_OFFSET (outbuf) = vorbisenc->bytes_out; GST_BUFFER_OFFSET_END (outbuf) = 0; @@ -798,7 +800,9 @@ gst_vorbis_enc_output_buffers (GstVorbisEnc * vorbisenc) GstBuffer *buf; GST_LOG_OBJECT (vorbisenc, "pushing out a data packet"); - buf = gst_buffer_new_and_alloc (op.bytes); + buf = + gst_audio_encoder_allocate_output_buffer (GST_AUDIO_ENCODER + (vorbisenc), op.bytes); gst_buffer_fill (buf, 0, op.packet, op.bytes); /* tracking granulepos should tell us samples accounted for */ ret =