[vlc-commits] mediacodec: exception in getCapabilitiesForType is not critical.

Thomas Guillem git at videolan.org
Wed Oct 15 10:49:58 CEST 2014


vlc/vlc-2.2 | branch: master | Thomas Guillem <tom at gllm.fr> | Tue Oct 14 11:35:57 2014 +0200| [e33e5def5b9901fadb0d756d60501c8dd9e8db7d] | committer: Jean-Baptiste Kempf

mediacodec: exception in getCapabilitiesForType is not critical.

fix mediacodec with android-L on Nexus 7v2.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 6e2f49095619d027ba99020076b0aedc6cde7afe)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 e2d733c..e703295 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -393,7 +393,7 @@ static int OpenDecoder(vlc_object_t *p_this)
             msg_Warn(p_dec, "Exception occurred in MediaCodecInfo.getCapabilitiesForType");
             (*env)->ExceptionClear(env);
             (*env)->DeleteLocalRef(env, info);
-            break;
+            continue;
         } else if (codec_capabilities) {
             profile_levels = (*env)->GetObjectField(env, codec_capabilities, p_sys->profile_levels_field);
             if (profile_levels)



More information about the vlc-commits mailing list