build fixes (those parameters/functions are const in 1.1.6)

Original commit message from CVS:
build fixes (those parameters/functions are const in 1.1.6)
This commit is contained in:
Stéphane Loeuillet 2004-10-01 18:55:14 +00:00
parent 49af49d8c5
commit b4700acee0
2 changed files with 7 additions and 7 deletions

View file

@ -397,7 +397,7 @@ speex_dec_chain (GstPad * pad, GstData * data)
return;
}
dec->mode = speex_mode_list[dec->header->mode];
dec->mode = (SpeexMode *) speex_mode_list[dec->header->mode];
/* initialize the decoder */
dec->state = speex_decoder_init (dec->mode);

View file

@ -648,13 +648,13 @@ gst_speexenc_setup (GstSpeexEnc * speexenc)
switch (speexenc->mode) {
case GST_SPEEXENC_MODE_UWB:
speexenc->speex_mode = &speex_uwb_mode;
speexenc->speex_mode = (SpeexMode *) & speex_uwb_mode;
break;
case GST_SPEEXENC_MODE_WB:
speexenc->speex_mode = &speex_wb_mode;
speexenc->speex_mode = (SpeexMode *) & speex_wb_mode;
break;
case GST_SPEEXENC_MODE_NB:
speexenc->speex_mode = &speex_nb_mode;
speexenc->speex_mode = (SpeexMode *) & speex_nb_mode;
break;
case GST_SPEEXENC_MODE_AUTO:
default:
@ -663,7 +663,7 @@ gst_speexenc_setup (GstSpeexEnc * speexenc)
if (speexenc->rate > 25000) {
if (speexenc->mode == GST_SPEEXENC_MODE_AUTO) {
speexenc->speex_mode = &speex_uwb_mode;
speexenc->speex_mode = (SpeexMode *) & speex_uwb_mode;
} else {
if (speexenc->speex_mode != &speex_uwb_mode) {
speexenc->last_message =
@ -674,7 +674,7 @@ gst_speexenc_setup (GstSpeexEnc * speexenc)
}
} else if (speexenc->rate > 12500) {
if (speexenc->mode == GST_SPEEXENC_MODE_AUTO) {
speexenc->speex_mode = &speex_wb_mode;
speexenc->speex_mode = (SpeexMode *) & speex_wb_mode;
} else {
if (speexenc->speex_mode != &speex_wb_mode) {
speexenc->last_message =
@ -685,7 +685,7 @@ gst_speexenc_setup (GstSpeexEnc * speexenc)
}
} else {
if (speexenc->mode == GST_SPEEXENC_MODE_AUTO) {
speexenc->speex_mode = &speex_nb_mode;
speexenc->speex_mode = (SpeexMode *) & speex_nb_mode;
} else {
if (speexenc->speex_mode != &speex_nb_mode) {
speexenc->last_message =