diff options
author | Mersad Jelacic <mersad@axis.com> | 2015-04-28 16:58:21 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-04-28 16:36:02 +0100 |
commit | 036f07e087c7ff7c7920d0b958c7c31c49c8e793 (patch) | |
tree | 52f4491c10bfa52c15a1612040a849df310e0cf6 /ext/opus/gstopusdec.c | |
parent | c754b8526b32cffe397308567127313bf993c86d (diff) | |
download | gstreamer-plugins-bad-036f07e087c7ff7c7920d0b958c7c31c49c8e793.tar.gz |
opus: don't use deprecated gst_buffer_new_and_alloc
Use the helper function available in the base class instead.
https://bugzilla.gnome.org/show_bug.cgi?id=748585
Diffstat (limited to 'ext/opus/gstopusdec.c')
-rw-r--r-- | ext/opus/gstopusdec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index d3c8e8d9c..a63478769 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -431,7 +431,9 @@ opus_dec_chain_parse_data (GstOpusDec * dec, GstBuffer * buffer) samples = 120 * dec->sample_rate / 1000; packet_size = samples * dec->n_channels * 2; - outbuf = gst_buffer_new_and_alloc (packet_size); + outbuf = + gst_audio_decoder_allocate_output_buffer (GST_AUDIO_DECODER (dec), + packet_size); if (!outbuf) { goto buffer_failed; } |