Commit d90b0071 authored by jehan's avatar jehan
Browse files

add better rtcp traces

parent 9e7ea53d
...@@ -288,7 +288,9 @@ void media_stream_iterate(MediaStream *stream){ ...@@ -288,7 +288,9 @@ void media_stream_iterate(MediaStream *stream){
if (ev!=NULL){ if (ev!=NULL){
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); mblk_t *m=ortp_event_get_data(ev)->packet;
ms_message("stream [%p]: receiving RTCP %s%s",stream,(rtcp_is_SR(m)?"SR":""),(rtcp_is_RR(m)?"RR":""));
stream->process_rtcp(stream,m);
}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", ms_message("%s_stream_iterate[%p]: local statistics available\n\tLocal's current jitter buffer size:%f ms",
media_stream_type_str(stream), stream, rtp_session_get_jitter_stats(stream->session)->jitter_buffer_size_ms); media_stream_type_str(stream), stream, rtp_session_get_jitter_stats(stream->session)->jitter_buffer_size_ms);
......
...@@ -79,7 +79,6 @@ static void video_stream_process_rtcp(MediaStream *media_stream, mblk_t *m){ ...@@ -79,7 +79,6 @@ static void video_stream_process_rtcp(MediaStream *media_stream, mblk_t *m){
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_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;
......
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