Commit 69f028c1 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fix issue in C++ wrapper

parent 6417e592
......@@ -11,7 +11,6 @@ void Linphone::Core::LinphoneCallParams::SetAudioBandwidth(int value)
Linphone::Core::MediaEncryption Linphone::Core::LinphoneCallParams::GetMediaEncryption()
{
std::lock_guard<std::recursive_mutex> lock(g_apiLock);
return (Linphone::Core::MediaEncryption) linphone_call_params_get_media_encryption(this->params);
}
......@@ -23,7 +22,6 @@ void Linphone::Core::LinphoneCallParams::SetMediaEncryption(Linphone::Core::Medi
Linphone::Core::PayloadType^ Linphone::Core::LinphoneCallParams::GetUsedAudioCodec()
{
std::lock_guard<std::recursive_mutex> lock(g_apiLock);
return (Linphone::Core::PayloadType^) Linphone::Core::Utils::CreatePayloadType((void*) linphone_call_params_get_used_audio_codec(this->params));
}
......@@ -35,7 +33,6 @@ void Linphone::Core::LinphoneCallParams::EnableLowBandwidth(Platform::Boolean en
Platform::Boolean Linphone::Core::LinphoneCallParams::IsLowBandwidthEnabled()
{
std::lock_guard<std::recursive_mutex> lock(g_apiLock);
return linphone_call_params_low_bandwidth_enabled(this->params);
}
......
......@@ -714,7 +714,8 @@ static void AddCallToVector(void *vCall, void *vector)
Linphone::Core::RefToPtrProxy<IVector<Object^>^> *list = reinterpret_cast< Linphone::Core::RefToPtrProxy<IVector<Object^>^> *>(vector);
IVector<Object^>^ calls = (list) ? list->Ref() : nullptr;
Linphone::Core::LinphoneCall^ call = (Linphone::Core::LinphoneCall^) Linphone::Core::Utils::CreateLinphoneCall(c);
Linphone::Core::RefToPtrProxy<Linphone::Core::LinphoneCall^> *proxy = reinterpret_cast< Linphone::Core::RefToPtrProxy<Linphone::Core::LinphoneCall^> *>(linphone_call_get_user_pointer(c));
Linphone::Core::LinphoneCall^ call = (proxy) ? proxy->Ref() : nullptr;
calls->Append(call);
}
......
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