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:
parent
09af0f1fbd
commit
16b8851440
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user