Commit 4817e9bd authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix build on Windows.

parent b9f4a460
......@@ -80,7 +80,7 @@ static void on_congestion_state_changed(const OrtpEventData *evd, void *user_poi
ms_bandwidth_controller_estimate_bandwidths(obj);
/*we need to clear the congestion by firstly requesting a bandwidth usage much lower than the theoritically possible,
so that the congested router can finaly expedite all the late packets it retains.*/
controlled_stream_bandwidth_requested = compute_target_bandwith_for_controlled_stream(obj, 0.7);
controlled_stream_bandwidth_requested = compute_target_bandwith_for_controlled_stream(obj, 0.7f);
if (controlled_stream_bandwidth_requested > 0){
ms_message("MSBandwidthController: congestion detected - sending tmmbr for stream [%p][%s] for target [%f] kbit/s",
......@@ -88,7 +88,7 @@ static void on_congestion_state_changed(const OrtpEventData *evd, void *user_poi
}
}else{
/*now that the congestion has ended, we can submit a new TMMBR to request a bandwidth closer to the maximum available*/
controlled_stream_bandwidth_requested = compute_target_bandwith_for_controlled_stream(obj, 0.9);
controlled_stream_bandwidth_requested = compute_target_bandwith_for_controlled_stream(obj, 0.9f);
if (controlled_stream_bandwidth_requested > 0){
ms_message("MSBandwidthController: congestion resolved - sending tmmbr for stream [%p][%s] for target [%f] kbit/s",
......
......@@ -639,7 +639,7 @@ static void tmmbr_received(const OrtpEventData *evd, void *user_pointer) {
MediaStream *ms = (MediaStream *)user_pointer;
switch (rtcp_RTPFB_get_type(evd->packet)) {
case RTCP_RTPFB_TMMBR: {
int tmmbr_mxtbr = rtcp_RTPFB_tmmbr_get_max_bitrate(evd->packet);
int tmmbr_mxtbr = (int)rtcp_RTPFB_tmmbr_get_max_bitrate(evd->packet);
ms_message("MediaStream[%p]: received a TMMBR for %i kbits/s"
, ms, (int)(tmmbr_mxtbr/1000));
......
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