Bug 1376873 - Remove Android java code from AudioConduit; r=padenot

This is no longer necessary as we do not use the webrtc.org audio device
implementations anymore.

Differential Revision: https://phabricator.services.mozilla.com/D7450

--HG--
extra : rebase_source : b0fb79e68885b42afa1418c77bc6d24527803e9c
This commit is contained in:
Dan Minor 2018-07-26 10:12:58 -04:00
Родитель 9ec710cad0
Коммит a4bb9e371c
1 изменённых файлов: 0 добавлений и 10 удалений

Просмотреть файл

@ -374,16 +374,6 @@ MediaConduitErrorCode WebrtcAudioConduit::Init()
CSFLogDebug(LOGTAG, "%s this=%p", __FUNCTION__, this);
MOZ_ASSERT(NS_IsMainThread());
#ifdef MOZ_WIDGET_ANDROID
JavaVM* jvm = mozilla::jni::GetVM();
jobject context = mozilla::AndroidBridge::Bridge()->GetGlobalContextRef();
if (webrtc::VoiceEngine::SetAndroidObjects(jvm, (void*)context) != 0) {
CSFLogError(LOGTAG, "%s Unable to set Android objects", __FUNCTION__);
return kMediaConduitSessionNotInited;
}
#endif
if(!(mPtrVoEBase = webrtc::VoEBase::GetInterface(GetVoiceEngine())))
{
CSFLogError(LOGTAG, "%s Unable to initialize VoEBase", __FUNCTION__);