Commit 1fa2aa3e authored by Simon Morlat's avatar Simon Morlat

fix previous commit

parent 684a3cb1
......@@ -407,7 +407,7 @@ static void rtp_session_schedule_outbound_network_simulator(RtpSession *session,
ortp_get_cur_time(&current);
packet_time.tv_sec=om->timestamp.tv_sec;
packet_time.tv_nsec=om->timestamp.tv_usec*1000LL;
else if (om->timestamp.tv_sec==0 && om->timestamp.tv_usec==0){
if (om->timestamp.tv_sec==0 && om->timestamp.tv_usec==0){
todrop=om; /*simulate a packet loss*/
}else if (packet_time.tv_sec<=current.tv_sec && packet_time.tv_nsec<=current.tv_nsec){
is_rtp_packet=om->reserved1; /*it was set by _rtp_session_sendto()*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment