Browse Source

twolame: set pf_encode at the end

pull/10/head
Ilkka Ollakka 13 years ago
parent
commit
ca446ef342
  1. 3
      modules/codec/twolame.c

3
modules/codec/twolame.c

@ -161,7 +161,6 @@ static int OpenEncoder( vlc_object_t *p_this )
return VLC_ENOMEM;
p_enc->p_sys = p_sys;
p_enc->pf_encode_audio = Encode;
p_enc->fmt_in.i_codec = VLC_CODEC_S16N;
p_enc->fmt_out.i_cat = AUDIO_ES;
@ -238,6 +237,8 @@ static int OpenEncoder( vlc_object_t *p_this )
return -VLC_EGENERIC;
}
p_enc->pf_encode_audio = Encode;
p_sys->i_nb_samples = 0;
return VLC_SUCCESS;

Loading…
Cancel
Save