[vlc-devel] [PATCH 3/4] mediacodec: fix GetOutput timeout

Thomas Guillem thomas at gllm.fr
Wed Oct 29 17:47:01 CET 2014


---
 modules/codec/omxil/android_mediacodec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/omxil/android_mediacodec.c b/modules/codec/omxil/android_mediacodec.c
index 8507ebc..e352266 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -738,6 +738,8 @@ static int GetOutput(decoder_t *p_dec, JNIEnv *env, picture_t **pp_pic, jlong ti
             (*env)->ExceptionClear(env);
             return -1;
         }
+        // timeout is only for the first try
+        timeout = 0;
 
         if (index >= 0) {
             if (!p_sys->pixel_format) {
-- 
2.1.0




More information about the vlc-devel mailing list