Commit 6dbf7572 authored by Ghislain MARY's avatar Ghislain MARY

Fix build on Windows.

parent 601c9750
...@@ -165,7 +165,7 @@ ORTP_PUBLIC void ortp_ev_dispatcher_connect(OrtpEvDispatcher *d ...@@ -165,7 +165,7 @@ ORTP_PUBLIC void ortp_ev_dispatcher_connect(OrtpEvDispatcher *d
/** /**
* Disconnects the given callback for the given type and subtype on the given dispatcher. * Disconnects the given callback for the given type and subtype on the given dispatcher.
*/ */
void ortp_ev_dispatcher_disconnect(OrtpEvDispatcher *d ORTP_PUBLIC void ortp_ev_dispatcher_disconnect(OrtpEvDispatcher *d
, OrtpEventType type , OrtpEventType type
, rtcp_type_t subtype , rtcp_type_t subtype
, OrtpEvDispatcherCb cb); , OrtpEvDispatcherCb cb);
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <ortp/rtpsession.h> #include <ortp/rtpsession.h>
static const unsigned int congestion_pending_duration_ms = 5000; static const unsigned int congestion_pending_duration_ms = 5000;
static const float congested_clock_ratio = 0.93; static const float congested_clock_ratio = 0.93f;
const char *ortp_congestion_detector_state_to_string(OrtpCongestionState state){ const char *ortp_congestion_detector_state_to_string(OrtpCongestionState state){
switch (state){ switch (state){
......
...@@ -185,10 +185,10 @@ void jitter_control_new_packet(JitterControl *ctl, uint32_t packet_ts, uint32_t ...@@ -185,10 +185,10 @@ void jitter_control_new_packet(JitterControl *ctl, uint32_t packet_ts, uint32_t
ctl->count++; ctl->count++;
} }
static void jitter_control_update_interarrival_jitter(JitterControl *ctl, int64_t diff){ static void jitter_control_update_interarrival_jitter(JitterControl *ctl, int32_t diff){
/*compute interarrival jitter*/ /*compute interarrival jitter*/
int32_t delta; int32_t delta;
delta= (int32_t)(diff-ctl->olddiff); delta=diff-ctl->olddiff;
ctl->inter_jitter=(float) (ctl->inter_jitter+ (( (float)abs(delta) - ctl->inter_jitter)*(1/16.0))); ctl->inter_jitter=(float) (ctl->inter_jitter+ (( (float)abs(delta) - ctl->inter_jitter)*(1/16.0)));
ctl->olddiff=diff; ctl->olddiff=diff;
} }
...@@ -215,7 +215,7 @@ void jitter_control_new_packet_basic(JitterControl *ctl, uint32_t packet_ts, uin ...@@ -215,7 +215,7 @@ void jitter_control_new_packet_basic(JitterControl *ctl, uint32_t packet_ts, uin
ctl->adapt_jitt_comp_ts=(int) MAX(ctl->jitt_comp_ts,2*ctl->jitter); ctl->adapt_jitt_comp_ts=(int) MAX(ctl->jitt_comp_ts,2*ctl->jitter);
//jitter_control_dump_stats(ctl); //jitter_control_dump_stats(ctl);
} }
ctl->clock_offset_ts=(int64_t)slide; ctl->clock_offset_ts=(int32_t)slide;
}else { }else {
/*ctl->slide and jitter size are not updated*/ /*ctl->slide and jitter size are not updated*/
} }
......
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