[vlc-commits] twolame: set pf_encode at the end

Ilkka Ollakka git at videolan.org
Thu Jan 9 09:45:00 CET 2014


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Thu Jan  9 10:39:57 2014 +0200| [ca446ef342ac19ebd75715f053431c2c87937965] | committer: Ilkka Ollakka

twolame: set pf_encode at the end

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ca446ef342ac19ebd75715f053431c2c87937965
---

 modules/codec/twolame.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/codec/twolame.c b/modules/codec/twolame.c
index 996f4aa..8aa41cb 100644
--- a/modules/codec/twolame.c
+++ b/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;



More information about the vlc-commits mailing list