Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
f8a9d16f
Commit
f8a9d16f
authored
Jun 11, 2008
by
Emmanuel Milou
Browse files
Warnings removal
parent
4df0d6a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/audio/audiortp.cpp
View file @
f8a9d16f
...
...
@@ -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
;
...
...
src/voiplink.cpp
View file @
f8a9d16f
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment