提交 3aee6c55 authored 作者: José Luis Millán's avatar José Luis Millán

Rtcp: use instance getters on 'Dump()' methods

上级 cc483751
......@@ -57,8 +57,8 @@ namespace RTC { namespace RTCP
MS_TRACE();
MS_DEBUG_DEV("<FirItem>");
MS_DEBUG_DEV(" ssrc : %" PRIu32, (uint32_t)ntohl(this->header->ssrc));
MS_DEBUG_DEV(" sequence number : %" PRIu8, this->header->sequence_number);
MS_DEBUG_DEV(" ssrc : %" PRIu32, this->GetSsrc());
MS_DEBUG_DEV(" sequence number : %" PRIu8, this->GetSequenceNumber());
MS_DEBUG_DEV("\t\t</FirItem>");
}
}}
......@@ -51,7 +51,7 @@ namespace RTC { namespace RTCP
MS_TRACE();
MS_DEBUG_DEV("<PsLeiItem>");
MS_DEBUG_DEV(" ssrc : %" PRIu32, (uint32_t)ntohl(this->header->ssrc));
MS_DEBUG_DEV(" ssrc : %" PRIu32, this->GetSsrc());
MS_DEBUG_DEV("</PsLeiItem>");
}
}}
......@@ -97,8 +97,8 @@ namespace RTC { namespace RTCP
MS_DEBUG_DEV("<RpsiItem>");
MS_DEBUG_DEV(" padding bits : %" PRIu8, this->header->padding_bits);
MS_DEBUG_DEV(" payload type : %" PRIu8, this->header->payload_type);
MS_DEBUG_DEV(" length : %zu", this->length);
MS_DEBUG_DEV(" payload type : %" PRIu8, this->GetPayloadType());
MS_DEBUG_DEV(" length : %zu", this->GetLength());
MS_DEBUG_DEV("</RpsiItem>");
}
}}
......@@ -59,9 +59,9 @@ namespace RTC { namespace RTCP
MS_TRACE();
MS_DEBUG_DEV("<TstItem>");
MS_DEBUG_DEV(" ssrc : %" PRIu32, (uint32_t)ntohl(this->header->ssrc));
MS_DEBUG_DEV(" sequence number : %" PRIu32, this->header->sequence_number);
MS_DEBUG_DEV(" index : %" PRIu32, this->header->index);
MS_DEBUG_DEV(" ssrc : %" PRIu32, this->GetSsrc());
MS_DEBUG_DEV(" sequence number : %" PRIu32, this->GetSequenceNumber());
MS_DEBUG_DEV(" index : %" PRIu32, this->GetIndex());
MS_DEBUG_DEV("</TstItem>");
}
......
......@@ -67,10 +67,10 @@ namespace RTC { namespace RTCP
MS_TRACE();
MS_DEBUG_DEV("<VbcmItem>");
MS_DEBUG_DEV(" ssrc : %" PRIu32, (uint32_t)ntohl(this->header->ssrc));
MS_DEBUG_DEV(" sequence number : %" PRIu8, this->header->sequence_number);
MS_DEBUG_DEV(" payload type : %" PRIu8, this->header->payload_type);
MS_DEBUG_DEV(" length : %" PRIu16, (uint16_t)ntohs(this->header->length));
MS_DEBUG_DEV(" ssrc : %" PRIu32, this->GetSsrc());
MS_DEBUG_DEV(" sequence number : %" PRIu8, this->GetSequenceNumber());
MS_DEBUG_DEV(" payload type : %" PRIu8, this->GetPayloadType());
MS_DEBUG_DEV(" length : %" PRIu16, this->GetLength());
MS_DEBUG_DEV("</Vbcm Item>");
}
}}
......@@ -41,13 +41,13 @@ namespace RTC { namespace RTCP
MS_TRACE();
MS_DEBUG_DEV("<EcnItem>");
MS_DEBUG_DEV(" sequence number : %" PRIu32, (uint32_t)ntohl(this->header->sequence_number));
MS_DEBUG_DEV(" ect0 counter : %" PRIu32, (uint32_t)ntohl(this->header->ect0_counter));
MS_DEBUG_DEV(" ect1 counter : %" PRIu32, (uint32_t)ntohl(this->header->ect1_counter));
MS_DEBUG_DEV(" ecn ce counter : %" PRIu16, (uint16_t)ntohs(this->header->ecn_ce_counter));
MS_DEBUG_DEV(" not ect counter : %" PRIu16, (uint16_t)ntohs(this->header->not_ect_counter));
MS_DEBUG_DEV(" lost packets : %" PRIu16, (uint16_t)ntohs(this->header->lost_packets));
MS_DEBUG_DEV(" duplicated packets : %" PRIu16, (uint16_t)ntohs(this->header->duplicated_packets));
MS_DEBUG_DEV(" sequence number : %" PRIu32, this->GetSequenceNumber());
MS_DEBUG_DEV(" ect0 counter : %" PRIu32, this->GetEct0Counter());
MS_DEBUG_DEV(" ect1 counter : %" PRIu32, this->GetEct1Counter());
MS_DEBUG_DEV(" ecn ce counter : %" PRIu16, this->GetEcnCeCounter());
MS_DEBUG_DEV(" not ect counter : %" PRIu16, this->GetNotEctcounter());
MS_DEBUG_DEV(" lost packets : %" PRIu16, this->GetLostPackets());
MS_DEBUG_DEV(" duplicated packets : %" PRIu16, this->GetDuplicatedPackets());
MS_DEBUG_DEV("</EcnItem>");
}
}}
......@@ -51,8 +51,8 @@ namespace RTC { namespace RTCP
MS_TRACE();
MS_DEBUG_DEV("<NackItem>");
MS_DEBUG_DEV(" pid : %" PRIu16, (uint16_t)ntohs(this->header->packet_id));
MS_DEBUG_DEV(" bpl : %" PRIu16, (uint16_t)ntohs(this->header->lost_packet_bitmask));
MS_DEBUG_DEV(" pid : %" PRIu16, this->GetPacketId());
MS_DEBUG_DEV(" bpl : %" PRIu16, this->GetLostPacketBitmask());
MS_DEBUG_DEV("</NackItem>");
}
}}
......@@ -51,8 +51,8 @@ namespace RTC { namespace RTCP
MS_TRACE();
MS_DEBUG_DEV("<TlleiItem>");
MS_DEBUG_DEV(" pid: %" PRIu16, (uint16_t)ntohs(this->header->packet_id));
MS_DEBUG_DEV(" bpl: %" PRIu16, (uint16_t)ntohs(this->header->lost_packet_bitmask));
MS_DEBUG_DEV(" pid: %" PRIu16, this->GetPacketId());
MS_DEBUG_DEV(" bpl: %" PRIu16, this->GetLostPacketBitmask());
MS_DEBUG_DEV("</TlleiItem>");
}
}}
......@@ -82,9 +82,9 @@ namespace RTC { namespace RTCP
MS_TRACE();
MS_DEBUG_DEV("<TmmbItem>");
MS_DEBUG_DEV(" ssrc : %" PRIu32, (uint32_t)ntohl(this->header->ssrc));
MS_DEBUG_DEV(" bitrate : %" PRIu64, this->bitrate);
MS_DEBUG_DEV(" overhead : %" PRIu16, this->overhead);
MS_DEBUG_DEV(" ssrc : %" PRIu32, this->GetSsrc());
MS_DEBUG_DEV(" bitrate : %" PRIu64, this->GetBitrate());
MS_DEBUG_DEV(" overhead : %" PRIu16, this->GetOverhead());
MS_DEBUG_DEV("</TmmbItem>");
}
......
......@@ -35,13 +35,13 @@ namespace RTC { namespace RTCP
MS_TRACE();
MS_DEBUG_DEV("<ReceiverReport>");
MS_DEBUG_DEV(" ssrc : %" PRIu32, (uint32_t)ntohl(this->header->ssrc));
MS_DEBUG_DEV(" fraction lost : %" PRIu32, this->header->fraction_lost);
MS_DEBUG_DEV(" ssrc : %" PRIu32, this->GetSsrc());
MS_DEBUG_DEV(" fraction lost : %" PRIu32, this->GetFractionLost());
MS_DEBUG_DEV(" total lost : %" PRIu32, this->GetTotalLost());
MS_DEBUG_DEV(" last seq : %" PRIu32, (uint32_t)ntohl(this->header->last_seq));
MS_DEBUG_DEV(" jitter : %" PRIu32, (uint32_t)ntohl(this->header->jitter));
MS_DEBUG_DEV(" lsr : %" PRIu32, (uint32_t)ntohl(this->header->lsr));
MS_DEBUG_DEV(" dlsr : %" PRIu32, (uint32_t)ntohl(this->header->dlsr));
MS_DEBUG_DEV(" last seq : %" PRIu32, this->GetLastSeq());
MS_DEBUG_DEV(" jitter : %" PRIu32, this->GetJitter());
MS_DEBUG_DEV(" lsr : %" PRIu32, this->GetLastSenderReport());
MS_DEBUG_DEV(" dlsr : %" PRIu32, this->GetDelaySinceLastSenderReport());
MS_DEBUG_DEV("</ReceiverReport>");
}
......
......@@ -34,12 +34,12 @@ namespace RTC { namespace RTCP
MS_TRACE();
MS_DEBUG_DEV("<SenderReport>");
MS_DEBUG_DEV(" ssrc : %" PRIu32, (uint32_t)ntohl(this->header->ssrc));
MS_DEBUG_DEV(" ntp sec : %" PRIu32, (uint32_t)ntohl(this->header->ntp_sec));
MS_DEBUG_DEV(" ntp frac : %" PRIu32, (uint32_t)ntohl(this->header->ntp_frac));
MS_DEBUG_DEV(" rtp ts : %" PRIu32, (uint32_t)ntohl(this->header->rtp_ts));
MS_DEBUG_DEV(" packet count : %" PRIu32, (uint32_t)ntohl(this->header->packet_count));
MS_DEBUG_DEV(" octet count : %" PRIu32, (uint32_t)ntohl(this->header->octet_count));
MS_DEBUG_DEV(" ssrc : %" PRIu32, this->GetSsrc());
MS_DEBUG_DEV(" ntp sec : %" PRIu32, this->GetNtpSec());
MS_DEBUG_DEV(" ntp frac : %" PRIu32, this->GetNtpFrac());
MS_DEBUG_DEV(" rtp ts : %" PRIu32, this->GetRtpTs());
MS_DEBUG_DEV(" packet count : %" PRIu32, this->GetPacketCount());
MS_DEBUG_DEV(" octet count : %" PRIu32, this->GetOctetCount());
MS_DEBUG_DEV("</SenderReport>");
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论