mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
androidmedia: Allow object to be NULL in gst_amc_jni_*unref functions
This commit is contained in:
parent
88cd44fbd8
commit
6ca0be038a
1 changed files with 4 additions and 0 deletions
|
@ -211,12 +211,16 @@ gst_amc_jni_object_ref (JNIEnv * env, jobject object)
|
|||
void
|
||||
gst_amc_jni_object_unref (JNIEnv * env, jobject object)
|
||||
{
|
||||
g_return_if_fail (object != NULL);
|
||||
|
||||
(*env)->DeleteGlobalRef (env, object);
|
||||
}
|
||||
|
||||
void
|
||||
gst_amc_jni_object_local_unref (JNIEnv * env, jobject object)
|
||||
{
|
||||
g_return_if_fail (object != NULL);
|
||||
|
||||
(*env)->DeleteLocalRef (env, object);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue