mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
audioconvert: Pass pointer arrays instead of singleton pointers to gst_audio_converter_samples()
In this specific case it wouldn't cause problems as we only ever access the first array element, but let's make explicit what is happening here. CID 1346530 and 1346529
This commit is contained in:
parent
43655580e7
commit
eb09889176
1 changed files with 4 additions and 2 deletions
|
@ -737,9 +737,11 @@ gst_audio_convert_transform (GstBaseTransform * base, GstBuffer * inbuf,
|
|||
flags |= GST_AUDIO_CONVERTER_FLAG_SOURCE_WRITABLE;
|
||||
|
||||
if (!GST_BUFFER_FLAG_IS_SET (inbuf, GST_BUFFER_FLAG_GAP)) {
|
||||
gpointer in[1] = { srcmap.data };
|
||||
gpointer out[1] = { dstmap.data };
|
||||
|
||||
if (!gst_audio_converter_samples (this->convert, flags,
|
||||
(gpointer *) & srcmap.data, samples, (gpointer *) & dstmap.data,
|
||||
samples, &consumed, &produced))
|
||||
in, samples, out, samples, &consumed, &produced))
|
||||
goto convert_error;
|
||||
} else {
|
||||
/* Create silence buffer */
|
||||
|
|
Loading…
Reference in a new issue