Move statements after declarations.
[paraslash.git] / spx_common.c
index f9f1eb7e0958465d02e5f7bccbb6fa50eb10c379..3e7736a506ba6423afad4817a64e747f354e468d 100644 (file)
@@ -120,12 +120,12 @@ int spx_process_header(unsigned char *packet, long bytes,
        shi->nframes = h->frames_per_packet;
        shi->channels = h->nb_channels;
        if (shi->channels != 1) {
-               shi->stereo = (SpeexStereoState)SPEEX_STEREO_STATE_INIT;
                SpeexCallback callback = {
                        .callback_id = SPEEX_INBAND_STEREO,
                        .func = speex_std_stereo_request_handler,
                        .data = &shi->stereo,
                };
+               shi->stereo = (SpeexStereoState)SPEEX_STEREO_STATE_INIT;
                ret = spx_ctl(shi->state, SPEEX_SET_HANDLER, &callback);
                if (ret < 0)
                        goto out;