mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
use ms_set_jvm()
This commit is contained in:
parent
5cdf291009
commit
2416116de4
1 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
*/
|
||||
#include <jni.h>
|
||||
#include "linphonecore.h"
|
||||
#include "mediastreamer2/msjava.h"
|
||||
|
||||
#ifdef ANDROID
|
||||
#include <android/log.h>
|
||||
extern "C" void libmsilbc_init();
|
||||
|
|
@ -47,6 +49,7 @@ static void linphone_android_log_handler(OrtpLogLevel lev, const char *fmt, va_l
|
|||
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *ajvm, void *reserved)
|
||||
{
|
||||
#ifdef ANDROID
|
||||
ms_set_jvm(ajvm);
|
||||
ms_andsnd_set_jvm(ajvm);
|
||||
#ifdef VIDEO_ENABLED
|
||||
ms_andvid_set_jvm(ajvm);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue