androidmedia: Fix get_level and get_profile exception checking by not using return

This commit is contained in:
Youness Alaoui 2013-01-07 18:20:47 -05:00 committed by Nicolas Dufresne
parent 86f2535c41
commit c84878ad4b

View file

@ -498,14 +498,20 @@ gint
gst_am_mediacodecprofilelevel_get_level (GstAmMediaCodecProfileLevel * self)
{
JNIEnv *env = gst_dvm_get_env ();
gint ret;
return AMMCPL_FIELD (return -1, Int, level);
ret = AMMCPL_FIELD (return -1, Int, level);
return ret;
}
gint
gst_am_mediacodecprofilelevel_get_profile (GstAmMediaCodecProfileLevel * self)
{
JNIEnv *env = gst_dvm_get_env ();
gint ret;
return AMMCPL_FIELD (return -1, Int, profile);
ret = AMMCPL_FIELD (return -1, Int, profile);
return ret;
}