From 8f09d11940210fad0cba72a23a69f197ae369c05 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Tue, 1 Jul 2014 19:56:08 +0200 Subject: [PATCH] Fix transmission type detection Third parameter MUST be 0. Don't ask why. --- core.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core.cpp b/core.cpp index 88b395d11..e01ca78c6 100644 --- a/core.cpp +++ b/core.cpp @@ -884,7 +884,7 @@ void Core::onAvInvite(int32_t call_index, void* core) return; } - int transType = toxav_get_peer_transmission_type(static_cast(core)->toxav, call_index, friendId); + int transType = toxav_get_peer_transmission_type(static_cast(core)->toxav, call_index, 0); if (transType == TypeVideo) { qDebug() << QString("Core: AV invite from %1 with video").arg(friendId); @@ -906,7 +906,7 @@ void Core::onAvStart(int32_t call_index, void* core) return; } - int transType = toxav_get_peer_transmission_type(static_cast(core)->toxav, call_index, friendId); + int transType = toxav_get_peer_transmission_type(static_cast(core)->toxav, call_index, 0); if (transType == TypeVideo) { qDebug() << QString("Core: AV start from %1 with video").arg(friendId); @@ -983,7 +983,7 @@ void Core::onAvStarting(int32_t call_index, void* core) qWarning() << "Core: Received invalid AV starting"; return; } - int transType = toxav_get_peer_transmission_type(static_cast(core)->toxav, call_index, friendId); + int transType = toxav_get_peer_transmission_type(static_cast(core)->toxav, call_index, 0); if (transType == TypeVideo) { qDebug() << QString("Core: AV starting from %1 with video").arg(friendId); @@ -1052,7 +1052,7 @@ void Core::answerCall(int callId) qWarning() << "Core: Received invalid AV answer peer ID"; return; } - int transType = toxav_get_peer_transmission_type(toxav, callId, friendId); + int transType = toxav_get_peer_transmission_type(toxav, callId, 0); if (transType == TypeVideo) { qDebug() << QString("Core: answering call %1 with video").arg(callId);