mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 15:06:34 +00:00
androidmedia: Fix get_level and get_profile exception checking by not using return
This commit is contained in:
parent
86f2535c41
commit
c84878ad4b
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue