[vlc-commits] mediacodec: Set the dequeue timeout in the right unit
Martin Storsjö
git at videolan.org
Fri Jan 17 12:50:31 CET 2014
vlc | branch: master | Martin Storsjö <martin at martin.st> | Fri Jan 17 13:49:31 2014 +0200| [31bf4b4de5c5c00f660fa3ab5dfd27729fddb669] | committer: Martin Storsjö
mediacodec: Set the dequeue timeout in the right unit
The timeout parameter is in microseconds, while the previous wait
value (30) was supposed to be milliseconds.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=31bf4b4de5c5c00f660fa3ab5dfd27729fddb669
---
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 3c94984..f9f18e1 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -545,7 +545,7 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block)
(*myVm)->DetachCurrentThread(myVm);
return p_pic;
}
- timeout = 30;
+ timeout = 30*1000;
continue;
}
jobject buf = (*env)->GetObjectArrayElement(env, p_sys->input_buffers, index);
More information about the vlc-commits
mailing list