From f4dc674dc233c2064c27184fe7bb1a0b56159a0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Wed, 6 Aug 2014 15:13:00 +0200 Subject: [PATCH] Enable openh264 plugin for "Call recording" test --- coreapi/linphonecore.c | 6 ++++++ coreapi/linphonecore.h | 2 ++ tester/call_tester.c | 9 +++++++++ 3 files changed, 17 insertions(+) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 4a5a11554..15491765e 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -6685,3 +6685,9 @@ bool_t linphone_core_sdp_200_ack_enabled(const LinphoneCore *lc) { void linphone_core_set_file_transfer_server(LinphoneCore *core, const char * server_url) { core->file_transfer_server=ms_strdup(server_url); } + +void linphone_core_init_openh264(void) { +#ifdef HAVE_OPENH264 + libmsopenh264_init(); +#endif +} diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index 9fdb864df..4f3f6f210 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -2782,6 +2782,8 @@ LINPHONE_PUBLIC void linphone_core_set_file_transfer_server(LinphoneCore *core, **/ LINPHONE_PUBLIC const char ** linphone_core_get_supported_file_formats(LinphoneCore *core); +LINPHONE_PUBLIC void linphone_core_init_openh264(void); + #ifdef __cplusplus } #endif diff --git a/tester/call_tester.c b/tester/call_tester.c index 51c57252b..e9e155a8e 100644 --- a/tester/call_tester.c +++ b/tester/call_tester.c @@ -2663,7 +2663,16 @@ static void savpf_to_savpf_call(void) { profile_call(TRUE, TRUE, TRUE, TRUE, "RTP/SAVPF"); } +#ifdef ANDROID +#ifdef HAVE_OPENH264 +extern void libmsopenh264_init(void); +#endif +#endif + static void call_recording() { +#ifdef ANDROID + linphone_core_init_openh264(); +#endif LinphoneCoreManager *marie = linphone_core_manager_new("marie_h264_rc"); LinphoneCoreManager *pauline = linphone_core_manager_new("pauline_h264_rc"); LinphoneCallParams *marieParams = linphone_core_create_default_call_parameters(marie->lc);