mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue