Skip to content
Snippets Groups Projects
Commit f8a9d16f authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Warnings removal

parent 4df0d6a2
No related branches found
No related tags found
No related merge requests found
......@@ -306,15 +306,15 @@ AudioRtpRTX::receiveSessionForSpkr (int& countTime)
return;
}
int payload = adu->getType(); // codec type
//int payload = adu->getType(); // codec type
unsigned char* spkrData = (unsigned char*)adu->getData(); // data in char
unsigned int size = adu->getSize(); // size in char
// Decode data with relevant codec
int max = (int)(_codecSampleRate * _layerFrameSize / 1000);
unsigned int max = (unsigned int)(_codecSampleRate * _layerFrameSize / 1000);
if ( size > max ) {
_debug("We have received from RTP a packet larger than expected: %s VS %s\n", size, max);
_debug("We have received from RTP a packet larger than expected: %d VS %d\n", size, max);
_debug("The packet size has been cropped\n");
size=max;
}
......@@ -326,7 +326,7 @@ AudioRtpRTX::receiveSessionForSpkr (int& countTime)
int nbInt16 = expandedSize / sizeof(int16);
//nbInt16 represents the number of samples we just decoded
if (nbInt16 > max) {
_debug("We have decoded an RTP packet larger than expected: %s VS %s. Cropping.\n", nbInt16, max);
_debug("We have decoded an RTP packet larger than expected: %d VS %d. Cropping.\n", nbInt16, max);
nbInt16=max;
}
int nbSample = nbInt16;
......
......@@ -25,8 +25,9 @@
#include "voiplink.h"
#include "manager.h"
VoIPLink::VoIPLink(const AccountID& accountID) : _accountID(accountID), _localIPAddress("127.0.0.1"), _localPort(0), _registrationError(NO_ERROR), _initDone(false)
VoIPLink::VoIPLink(const AccountID& accountID) : _accountID(accountID), _localIPAddress("127.0.0.1"), _localPort(0), _initDone(false)
{
_registrationError( NO_ERROR );
}
VoIPLink::~VoIPLink (void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment