summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Jingle/src/version.h4
-rw-r--r--plugins/Jingle/src/voip.cpp18
2 files changed, 11 insertions, 11 deletions
diff --git a/plugins/Jingle/src/version.h b/plugins/Jingle/src/version.h
index 4e88b19d46..4d1ca9e37a 100644
--- a/plugins/Jingle/src/version.h
+++ b/plugins/Jingle/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
-#define __MINOR_VERSION 0
+#define __MINOR_VERSION 1
#define __RELEASE_NUM 0
-#define __BUILD_NUM 2
+#define __BUILD_NUM 1
#include <stdver.h>
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);
}
}