mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
Set jvm into Android mediastreamer filter code, when VIDEO is enabled.
This commit is contained in:
parent
7db8fc8c96
commit
08d2ce9ea4
1 changed files with 5 additions and 0 deletions
|
|
@ -24,6 +24,8 @@ extern "C" void libmsilbc_init();
|
|||
#endif /*ANDROID*/
|
||||
|
||||
extern "C" void ms_andsnd_set_jvm(JavaVM *jvm) ;
|
||||
extern "C" void ms_andvid_set_jvm(JavaVM *jvm) ;
|
||||
|
||||
static JavaVM *jvm=0;
|
||||
|
||||
#ifdef ANDROID
|
||||
|
|
@ -45,6 +47,9 @@ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *ajvm, void *reserved)
|
|||
{
|
||||
#ifdef ANDROID
|
||||
ms_andsnd_set_jvm(ajvm);
|
||||
#ifdef VIDEO_ENABLED
|
||||
ms_andvid_set_jvm(ajvm);
|
||||
#endif /*VIDEO_ENABLED*/
|
||||
#endif /*ANDROID*/
|
||||
jvm=ajvm;
|
||||
return JNI_VERSION_1_2;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue