projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09af0f1
)
audioconvert: resize output buffer to correct size
author
Wim Taymans
<wtaymans@redhat.com>
Fri, 2 Jun 2017 07:41:59 +0000
(09:41 +0200)
committer
Wim Taymans
<wtaymans@redhat.com>
Fri, 2 Jun 2017 07:44:19 +0000
(09:44 +0200)
If we are using a downstream bufferpool we need to set the size of the
buffer to our output size.
gst/audioconvert/gstaudioconvert.c
patch
|
blob
|
history
diff --git
a/gst/audioconvert/gstaudioconvert.c
b/gst/audioconvert/gstaudioconvert.c
index 1bd05431c26b1105e98041e84a9d0cadb612d575..d86b2d444de2ec9a569c06911468d7d20a706998 100644
(file)
--- a/
gst/audioconvert/gstaudioconvert.c
+++ b/
gst/audioconvert/gstaudioconvert.c
@@
-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)