X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=spx_common.c;h=3e7736a506ba6423afad4817a64e747f354e468d;hp=ce01e23abd2c90aca37819148b735a4a26d14e2b;hb=e3272a316d113dd9c0c6f01f3087ab14f945e76b;hpb=90560de0d7e4d825772270f9ac7cbefbb38aad97;ds=inline diff --git a/spx_common.c b/spx_common.c index ce01e23a..3e7736a5 100644 --- a/spx_common.c +++ b/spx_common.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2002-2006 Jean-Marc Valin - * Copyright (C) 2010 Andre Noll + * Copyright (C) 2010-2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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;