mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
Clang-3.5 warnings fixed
This commit is contained in:
committed by
Michael Jerris
parent
270dffca78
commit
26424171d2
@@ -255,8 +255,8 @@ static inline void add_node(switch_vb_t *vb, switch_rtp_packet_t *packet, switch
|
||||
|
||||
|
||||
|
||||
if (vb->write_init && ((abs(htons(packet->header.seq) - htons(vb->highest_wrote_seq)) > 16) ||
|
||||
(abs(ntohl(node->packet.header.ts) - ntohl(vb->highest_wrote_ts)) > 900000))) {
|
||||
if (vb->write_init && ((abs(((int)htons(packet->header.seq) - htons(vb->highest_wrote_seq))) > 16) ||
|
||||
(abs((int)((int64_t)ntohl(node->packet.header.ts) - (int64_t)ntohl(vb->highest_wrote_ts))) > 900000))) {
|
||||
vb_debug(vb, 2, "%s", "CHANGE DETECTED, PUNT\n");
|
||||
switch_vb_reset(vb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user