mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-28 13:56:21 +00:00
fix linux compilation
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@320 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
ca58bdd460
commit
51a59d4b9d
1 changed files with 15 additions and 15 deletions
|
|
@ -50,11 +50,11 @@ ice_sendtest( struct IceCheckList *checklist, struct CandidatePair *remote_candi
|
|||
check */
|
||||
req.hasPriority = TRUE;
|
||||
|
||||
UCHAR type_preference = 110;
|
||||
UCHAR interface_preference = 255;
|
||||
UCHAR stun_priority=255;
|
||||
req.priority.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8)
|
||||
| (256 - remote_candidate->remote_candidate.component_id);
|
||||
uint32_t type_preference = 110;
|
||||
uint32_t interface_preference = 255;
|
||||
uint32_t stun_priority=255;
|
||||
req.priority.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8)
|
||||
| (256 - remote_candidate->remote_candidate.component_id);
|
||||
|
||||
/* TODO: put this parameter only for the candidate selected */
|
||||
if (remote_candidate->nominated_pair==1)
|
||||
|
|
@ -810,11 +810,11 @@ static int ice_process_stun_message(RtpSession *session, struct IceCheckList *ch
|
|||
new_pair.remote_candidate.priority = msg.priority.priority;
|
||||
if (new_pair.remote_candidate.priority==0)
|
||||
{
|
||||
UCHAR type_preference = 110;
|
||||
UCHAR interface_preference = 255;
|
||||
UCHAR stun_priority=255;
|
||||
new_pair.remote_candidate.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8)
|
||||
| (256 - new_pair.remote_candidate.component_id);
|
||||
uint32_t type_preference = 110;
|
||||
uint32_t interface_preference = 255;
|
||||
uint32_t stun_priority=255;
|
||||
new_pair.remote_candidate.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8)
|
||||
| (256 - new_pair.remote_candidate.component_id);
|
||||
}
|
||||
|
||||
snprintf(new_pair.remote_candidate.cand_type, sizeof(cand_pair->remote_candidate.cand_type),
|
||||
|
|
@ -1081,11 +1081,11 @@ static int ice_process_stun_message(RtpSession *session, struct IceCheckList *ch
|
|||
snprintf(new_pair.local_candidate.conn_addr, sizeof(new_pair.local_candidate.conn_addr),
|
||||
"%s", mapped_addr);
|
||||
|
||||
UCHAR type_preference = 110;
|
||||
UCHAR interface_preference = 255;
|
||||
UCHAR stun_priority=255;
|
||||
new_pair.remote_candidate.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8)
|
||||
| (256 - new_pair.remote_candidate.component_id);
|
||||
uint32_t type_preference = 110;
|
||||
uint32_t interface_preference = 255;
|
||||
uint32_t stun_priority=255;
|
||||
new_pair.remote_candidate.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8)
|
||||
| (256 - new_pair.remote_candidate.component_id);
|
||||
|
||||
snprintf(new_pair.local_candidate.cand_type, sizeof(cand_pair->local_candidate.cand_type),
|
||||
"prflx");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue