audioconvert: resize output buffer to correct size

If we are using a downstream bufferpool we need to set the size of the
buffer to our output size.
This commit is contained in:
Wim Taymans 2017-06-02 09:41:59 +02:00
parent 09af0f1fbd
commit 16b8851440

View file

@ -728,6 +728,8 @@ gst_audio_convert_transform (GstBaseTransform * base, GstBuffer * inbuf,
if (insize == 0 || outsize == 0)
return GST_FLOW_OK;
gst_buffer_resize (outbuf, 0, outsize);
/* get src and dst data */
if (inbuf != outbuf) {
inbuf_writable = gst_buffer_is_writable (inbuf)