Commit 06ae49f5 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle

audio-converter: fix declaration-after-statement

parent 9cf4293b
......@@ -1469,11 +1469,14 @@ gst_audio_converter_convert (GstAudioConverter * convert,
GstAudioConverterFlags flags, gpointer in, gsize in_size,
gpointer * out, gsize * out_size)
{
gsize in_frames;
gsize out_frames;
g_return_val_if_fail (convert != NULL, FALSE);
g_return_val_if_fail (flags ^ GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE, FALSE);
gsize in_frames = in_size / convert->in.bpf;
gsize out_frames = gst_audio_converter_get_out_frames (convert, in_frames);
in_frames = in_size / convert->in.bpf;
out_frames = gst_audio_converter_get_out_frames (convert, in_frames);
*out_size = out_frames * convert->out.bpf;
*out = g_malloc0 (*out_size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment