[vlc-commits] mediacodec: move callback setup at the end
Thomas Guillem
git at videolan.org
Wed Apr 20 15:40:30 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Apr 20 15:39:55 2016 +0200| [f788026a85f490aee06f97a24c3efa1e286bd195] | committer: Thomas Guillem
mediacodec: move callback setup at the end
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f788026a85f490aee06f97a24c3efa1e286bd195
---
modules/codec/omxil/mediacodec.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 198dfdc..81ba449 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -601,10 +601,6 @@ static int OpenDecoder(vlc_object_t *p_this, pf_MediaCodecApi_init pf_init)
p_sys->api = api;
p_dec->p_sys = p_sys;
- p_dec->pf_decode_video = DecodeVideo;
- p_dec->pf_decode_audio = DecodeAudio;
- p_dec->pf_flush = DecodeFlush;
-
p_dec->fmt_out.i_cat = p_dec->fmt_in.i_cat;
p_dec->fmt_out.video = p_dec->fmt_in.video;
p_dec->fmt_out.audio = p_dec->fmt_in.audio;
@@ -678,6 +674,10 @@ static int OpenDecoder(vlc_object_t *p_this, pf_MediaCodecApi_init pf_init)
goto bailout;
}
+ p_dec->pf_decode_video = DecodeVideo;
+ p_dec->pf_decode_audio = DecodeAudio;
+ p_dec->pf_flush = DecodeFlush;
+
return VLC_SUCCESS;
bailout:
More information about the vlc-commits
mailing list