Commit e99d6196 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix typos

parent 5003385d
...@@ -289,11 +289,9 @@ void media_stream_iterate(MediaStream *stream){ ...@@ -289,11 +289,9 @@ void media_stream_iterate(MediaStream *stream){
OrtpEventType evt=ortp_event_get_type(ev); OrtpEventType evt=ortp_event_get_type(ev);
if (evt==ORTP_EVENT_RTCP_PACKET_RECEIVED){ if (evt==ORTP_EVENT_RTCP_PACKET_RECEIVED){
stream->process_rtcp(stream,ortp_event_get_data(ev)->packet); stream->process_rtcp(stream,ortp_event_get_data(ev)->packet);
}else if (evt==ORTP_EVENT_RTCP_PACKET_EMITTED){ }else if (evt==ORTP_EVENT_RTCP_PACKET_EMITTED){
ms_message("%s_stream_iterate[%p]: local statistics available\n\tLocal's current jitter buffer size:%f ms" , media_stream_type_str(stream) ms_message("%s_stream_iterate[%p]: local statistics available\n\tLocal's current jitter buffer size:%f ms",
, stream media_stream_type_str(stream), stream, rtp_session_get_jitter_stats(stream->session)->jitter_buffer_size_ms);
, rtp_session_get_jitter_stats(stream->session)->jitter_buffer_size_ms);
}else if ((evt==ORTP_EVENT_STUN_PACKET_RECEIVED)&&(stream->ice_check_list)){ }else if ((evt==ORTP_EVENT_STUN_PACKET_RECEIVED)&&(stream->ice_check_list)){
ice_handle_stun_packet(stream->ice_check_list,stream->session,ortp_event_get_data(ev)); ice_handle_stun_packet(stream->ice_check_list,stream->session,ortp_event_get_data(ev));
} }
......
...@@ -74,12 +74,12 @@ static void event_cb(void *ud, MSFilter* f, unsigned int event, void *eventdata) ...@@ -74,12 +74,12 @@ static void event_cb(void *ud, MSFilter* f, unsigned int event, void *eventdata)
} }
} }
static void video_steam_process_rtcp(MediaStream *media_stream, mblk_t *m){ static void video_stream_process_rtcp(MediaStream *media_stream, mblk_t *m){
VideoStream *stream = (VideoStream *)media_stream; VideoStream *stream = (VideoStream *)media_stream;
do{ do{
if (rtcp_is_SR(m)){ if (rtcp_is_SR(m)){
const report_block_t *rb; const report_block_t *rb;
ms_message("video_steam_process_rtcp: receiving RTCP SR"); ms_message("video_stream_process_rtcp: receiving RTCP SR");
rb=rtcp_SR_get_report_block(m,0); rb=rtcp_SR_get_report_block(m,0);
if (rb){ if (rb){
unsigned int ij; unsigned int ij;
...@@ -87,7 +87,7 @@ static void video_steam_process_rtcp(MediaStream *media_stream, mblk_t *m){ ...@@ -87,7 +87,7 @@ static void video_steam_process_rtcp(MediaStream *media_stream, mblk_t *m){
float flost; float flost;
ij=report_block_get_interarrival_jitter(rb); ij=report_block_get_interarrival_jitter(rb);
flost=(float)(100.0*report_block_get_fraction_lost(rb)/256.0); flost=(float)(100.0*report_block_get_fraction_lost(rb)/256.0);
ms_message("video_steam_process_rtcp[%p]: interarrival jitter=%u , lost packets percentage since last report=%f, round trip time=%f seconds",stream,ij,flost,rt); ms_message("video_stream_process_rtcp[%p]: interarrival jitter=%u , lost packets percentage since last report=%f, round trip time=%f seconds",stream,ij,flost,rt);
if (stream->ms.rc) if (stream->ms.rc)
ms_bitrate_controller_process_rtcp(stream->ms.rc,m); ms_bitrate_controller_process_rtcp(stream->ms.rc,m);
} }
...@@ -141,7 +141,7 @@ VideoStream *video_stream_new(int loc_rtp_port, int loc_rtcp_port, bool_t use_ip ...@@ -141,7 +141,7 @@ VideoStream *video_stream_new(int loc_rtp_port, int loc_rtcp_port, bool_t use_ip
stream->source_performs_encoding = FALSE; stream->source_performs_encoding = FALSE;
stream->output_performs_decoding = FALSE; stream->output_performs_decoding = FALSE;
choose_display_name(stream); choose_display_name(stream);
stream->ms.process_rtcp=video_steam_process_rtcp; stream->ms.process_rtcp=video_stream_process_rtcp;
return stream; return stream;
} }
...@@ -327,7 +327,8 @@ int video_stream_start (VideoStream *stream, RtpProfile *profile, const char *re ...@@ -327,7 +327,8 @@ int video_stream_start (VideoStream *stream, RtpProfile *profile, const char *re
} }
rtp_session_set_profile(rtps,profile); rtp_session_set_profile(rtps,profile);
if (rem_rtp_port>0) rtp_session_set_remote_addr_full(rtps,rem_rtp_ip,rem_rtp_port,rem_rtcp_ip,rem_rtcp_port); if (rem_rtp_port>0)
rtp_session_set_remote_addr_full(rtps,rem_rtp_ip,rem_rtp_port,rem_rtcp_ip,rem_rtcp_port);
rtp_session_set_payload_type(rtps,payload); rtp_session_set_payload_type(rtps,payload);
rtp_session_set_jitter_compensation(rtps,jitt_comp); rtp_session_set_jitter_compensation(rtps,jitt_comp);
......
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