Commit 54c3926a authored by Sylvain Berfini's avatar Sylvain Berfini

Fix android ms2 sdk compil

parent d5cd3b14
......@@ -278,6 +278,7 @@ LOCAL_STATIC_LIBRARIES += cpufeatures
ifeq ($(BUILD_MEDIASTREAMER2_SDK), 1)
LOCAL_SRC_FILES += \
../tools/common.c \
../tools/mediastream.c
ifneq ($(_BUILD_AMR), 0)
......@@ -308,9 +309,7 @@ ifeq ($(BUILD_MEDIASTREAMER2_SDK), 1)
LOCAL_STATIC_LIBRARIES += libmsopenh264 libopenh264
endif
LOCAL_SHARED_LIBRARIES += \
libavcodec-linphone \
libswscale-linphone \
libavutil-linphone
libffmpeg-linphone
LOCAL_LDLIBS += -lGLESv2
endif
ifeq ($(BUILD_SRTP),1)
......
......@@ -982,8 +982,8 @@ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *ajvm, void *reserved)
JNIEXPORT void JNICALL Java_org_linphone_mediastream_MediastreamerActivity_setVideoWindowId
(JNIEnv *env, jobject obj, jobject id, jint _args) {
MediastreamDatas* args = (MediastreamDatas*)_args;
#ifdef VIDEO_ENABLED
MediastreamDatas* args = (MediastreamDatas*)_args;
if (!args->video)
return;
video_stream_set_native_window_id(args->video,(unsigned long)id);
......@@ -992,8 +992,8 @@ JNIEXPORT void JNICALL Java_org_linphone_mediastream_MediastreamerActivity_setVi
JNIEXPORT void JNICALL Java_org_linphone_mediastream_MediastreamerActivity_setVideoPreviewWindowId
(JNIEnv *env, jobject obj, jobject id, jint _args) {
MediastreamDatas* args = (MediastreamDatas*)_args;
#ifdef VIDEO_ENABLED
MediastreamDatas* args = (MediastreamDatas*)_args;
if (!args->video)
return;
video_stream_set_native_preview_window_id(args->video,(unsigned long)id);
......@@ -1002,8 +1002,8 @@ JNIEXPORT void JNICALL Java_org_linphone_mediastream_MediastreamerActivity_setVi
JNIEXPORT void JNICALL Java_org_linphone_mediastream_MediastreamerActivity_setDeviceRotation
(JNIEnv *env, jobject thiz, jint rotation, jint _args) {
MediastreamDatas* args = (MediastreamDatas*)_args;
#ifdef VIDEO_ENABLED
MediastreamDatas* args = (MediastreamDatas*)_args;
if (!args->video)
return;
video_stream_set_device_rotation(args->video, rotation);
......@@ -1012,8 +1012,8 @@ JNIEXPORT void JNICALL Java_org_linphone_mediastream_MediastreamerActivity_setDe
JNIEXPORT void JNICALL Java_org_linphone_mediastream_MediastreamerActivity_changeCamera
(JNIEnv *env, jobject obj, jint camId, jint _args) {
MediastreamDatas* args = (MediastreamDatas*)_args;
#ifdef VIDEO_ENABLED
MediastreamDatas* args = (MediastreamDatas*)_args;
if (!args->video)
return;
char* id = (char*)malloc(15);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment