[vlc-commits] mediacodec: Remove an unused variable

Martin Storsjö git at videolan.org
Wed Jan 30 12:32:19 CET 2013


vlc | branch: master | Martin Storsjö <martin at martin.st> | Wed Jan 30 12:54:08 2013 +0200| [8e79d2426c2a07c922f8506286153e1c830f36da] | committer: Rafaël Carré

mediacodec: Remove an unused variable

Signed-off-by: Rafaël Carré <funman at videolan.org>

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

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

diff --git a/modules/codec/omxil/android_mediacodec.c b/modules/codec/omxil/android_mediacodec.c
index 0b36f7a1..ff1e745 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -260,7 +260,7 @@ static int OpenDecoder(vlc_object_t *p_this)
 
     int num_codecs = (*env)->CallStaticIntMethod(env, p_sys->media_codec_list_class,
                                                  p_sys->get_codec_count);
-    jobject codec_info = NULL, codec_name = NULL;
+    jobject codec_name = NULL;
 
     for (int i = 0; i < num_codecs; i++) {
         jobject info = (*env)->CallStaticObjectMethod(env, p_sys->media_codec_list_class,
@@ -287,14 +287,13 @@ static int OpenDecoder(vlc_object_t *p_this)
             memcpy(p_sys->name, name_ptr, name_len);
             p_sys->name[name_len] = '\0';
             (*env)->ReleaseStringUTFChars(env, name, name_ptr);
-            codec_info = info;
             codec_name = name;
             break;
         }
         (*env)->DeleteLocalRef(env, info);
     }
 
-    if (!codec_info) {
+    if (!codec_name) {
         msg_Dbg(p_dec, "No suitable codec matching %s was found", mime);
         goto error;
     }



More information about the vlc-commits mailing list