[vlc-commits] mediacodec: don't process output it input failed
Thomas Guillem
git at videolan.org
Mon Apr 27 15:09:33 CEST 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Apr 27 13:43:10 2015 +0200| [c39c4bd3383478a2fcc890ab9c1f0ea8259db9e6] | committer: Thomas Guillem
mediacodec: don't process output it input failed
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c39c4bd3383478a2fcc890ab9c1f0ea8259db9e6
---
modules/codec/omxil/android_mediacodec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/omxil/android_mediacodec.c b/modules/codec/omxil/android_mediacodec.c
index cf155dc..7672a2b 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -1183,7 +1183,7 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block)
if (p_block && i_input_ret == 0)
i_input_ret = PutInput(p_dec, env, p_block, timeout);
- if (i_output_ret == 0)
+ if (i_input_ret != -1 && i_output_ret == 0)
{
/* FIXME: A new picture shouldn't be created each time.
* If decoder_NewPicture fails because the decoder is
More information about the vlc-commits
mailing list