Merge "[Bugfix][T108-GSW][bug-view-1974] if called too early, mbtk rtp init will fail" into GSW_V1453
diff --git a/mbtk/libgsw_lib/gsw_voice_interface.c b/mbtk/libgsw_lib/gsw_voice_interface.c
index 4486816..499ada1 100755
--- a/mbtk/libgsw_lib/gsw_voice_interface.c
+++ b/mbtk/libgsw_lib/gsw_voice_interface.c
@@ -477,15 +477,6 @@
LOGE(GSW_VOICE,"mbtk_call_api_import fail,ret = %d\n",ret);
return GSW_HAL_NORMAL_FAIL;
}
-
- ret=mbtk_rtp_init();
-
- if(ret!=0)
- {
- LOGE(GSW_VOICE,"[gsw_voice_sdk_init]mbtk_rtp_init fail\n");
- return GSW_HAL_NORMAL_FAIL;
- }
-
if(call_info_handle == NULL)
{
call_info_handle = mbtk_info_handle_get();
@@ -497,7 +488,6 @@
if(ret)
{
LOGE(GSW_VOICE,"mbtk_call_state_change_cb_reg fail,ret = %d\n",ret);
- (void) mbtk_rtp_deinit();
return GSW_HAL_NORMAL_FAIL;
}
else
@@ -512,7 +502,6 @@
else
{
- (void) mbtk_rtp_deinit();
LOGE(GSW_VOICE,"create gsw_voice_sdk_init fail\n");
return GSW_HAL_NORMAL_FAIL;
}