mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 13:08:49 +00:00
androidmedia: Move variables into the scope where they are needed
This commit is contained in:
parent
442114c606
commit
6be20ffb79
1 changed files with 2 additions and 3 deletions
|
@ -1607,6 +1607,8 @@ scan_codecs (GstPlugin * plugin)
|
||||||
jclass capabilities_class = NULL;
|
jclass capabilities_class = NULL;
|
||||||
jfieldID profile_levels_id, color_formats_id;
|
jfieldID profile_levels_id, color_formats_id;
|
||||||
jobject profile_levels = NULL;
|
jobject profile_levels = NULL;
|
||||||
|
jobject color_formats = NULL;
|
||||||
|
jint *color_formats_elems = NULL;
|
||||||
jsize n_elems, k;
|
jsize n_elems, k;
|
||||||
|
|
||||||
gst_codec_type = &gst_codec_info->supported_types[j];
|
gst_codec_type = &gst_codec_info->supported_types[j];
|
||||||
|
@ -1667,9 +1669,6 @@ scan_codecs (GstPlugin * plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_str_has_prefix (gst_codec_type->mime, "video/")) {
|
if (g_str_has_prefix (gst_codec_type->mime, "video/")) {
|
||||||
jobject color_formats = NULL;
|
|
||||||
jint *color_formats_elems = NULL;
|
|
||||||
|
|
||||||
color_formats =
|
color_formats =
|
||||||
(*env)->GetObjectField (env, capabilities, color_formats_id);
|
(*env)->GetObjectField (env, capabilities, color_formats_id);
|
||||||
if ((*env)->ExceptionCheck (env)) {
|
if ((*env)->ExceptionCheck (env)) {
|
||||||
|
|
Loading…
Reference in a new issue