X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=spx_common.c;h=b8eb99122dc5e273154302752f2be47acd9d0f99;hp=f9f1eb7e0958465d02e5f7bccbb6fa50eb10c379;hb=99f21f0b6ecf29f949cdbce285e241a2e3ef3093;hpb=9417eae5ca2b9f10d25f769221e8fd91048bc68a diff --git a/spx_common.c b/spx_common.c index f9f1eb7e..b8eb9912 100644 --- a/spx_common.c +++ b/spx_common.c @@ -1,8 +1,8 @@ /* * Copyright (C) 2002-2006 Jean-Marc Valin - * Copyright (C) 2010-2011 Andre Noll + * Copyright (C) 2010 Andre Noll * - * Licensed under the GPL v2. For licencing details see COPYING. + * Licensed under the GPL v2, see file COPYING. */ /** @@ -60,7 +60,7 @@ * * \return Standard. */ -int spx_ctl(void *state, int request, void *ptr) +static int spx_ctl(void *state, int request, void *ptr) { int ret = speex_decoder_ctl(state, request, ptr); @@ -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;