[vlc-devel] [PATCH 4/4] mediacodec: Remove an unused variable
Martin Storsjö
martin at martin.st
Wed Jan 30 11:54:08 CET 2013
---
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 c092a39..6c4e5d3 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -261,7 +261,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,
@@ -288,14 +288,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;
}
--
1.7.10.4
More information about the vlc-devel
mailing list