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:
Sebastian Dröge 2015-12-29 18:14:54 +02:00
parent 43655580e7
commit eb09889176

View file

@ -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 */