diff options
Diffstat (limited to 'plugins/Jingle/src/voip.cpp')
-rw-r--r-- | plugins/Jingle/src/voip.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Jingle/src/voip.cpp b/plugins/Jingle/src/voip.cpp index fadcd5c24b..6749a07686 100644 --- a/plugins/Jingle/src/voip.cpp +++ b/plugins/Jingle/src/voip.cpp @@ -509,17 +509,17 @@ bool CJabberAccount::VOIPCallIinitiate(MCONTACT hContact) void CJabberAccount::InitVoip(bool bEnable) { - // Voip - VOICE_MODULE vsr = {}; - vsr.cbSize = sizeof(VOICE_MODULE); - vsr.description = L"XMPP/DTLS-SRTP"; - vsr.name = (char*)m_szModuleName; - vsr.icon = g_plugin.getIconHandle(IDI_MAIN); - vsr.flags = 3; - if (bEnable) + if (bEnable) { + VOICE_MODULE vsr = {}; + vsr.cbSize = sizeof(VOICE_MODULE); + vsr.description = L"XMPP/DTLS-SRTP"; + vsr.name = (char *)m_szModuleName; + vsr.icon = g_plugin.getIconHandle(IDI_MAIN); + vsr.flags = 3; CallService(MS_VOICESERVICE_REGISTER, (WPARAM)&vsr, 0); + } else { VOIPTerminateSession(); - CallService(MS_VOICESERVICE_UNREGISTER, (WPARAM)&vsr, 0); + CallService(MS_VOICESERVICE_UNREGISTER, (WPARAM)m_szModuleName, 0); } } |