summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/AV/RTCP.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/RTCP.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp b/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp
index a9a8236c777..b35f2505e88 100644
--- a/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp
@@ -48,7 +48,7 @@ int
TAO_AV_RTCP_Callback::receive_control_frame (ACE_Message_Block *data,
const ACE_Addr &peer_address)
{
- int length = ACE_static_cast (int, data->length ());
+ int length = static_cast<int> (data->length ());
int more = length;
char *buf_ptr = data->rd_ptr ();
char first_rtcp_packet = 1;
@@ -479,8 +479,7 @@ TAO_AV_RTCP_Object::handle_control_input (ACE_Message_Block *frame,
int
TAO_AV_RTCP_Object::handle_control_output (ACE_Message_Block *frame)
{
- TAO_AV_RTCP_Callback *cb = ACE_dynamic_cast (TAO_AV_RTCP_Callback*,
- this->callback_);
+ TAO_AV_RTCP_Callback *cb = dynamic_cast<TAO_AV_RTCP_Callback*> (this->callback_);
return cb->send_frame (frame);
}
@@ -488,8 +487,7 @@ TAO_AV_RTCP_Object::handle_control_output (ACE_Message_Block *frame)
void
TAO_AV_RTCP_Object::ts_offset (ACE_UINT32 ts_offset)
{
- TAO_AV_RTCP_Callback *cb = ACE_dynamic_cast (TAO_AV_RTCP_Callback*,
- this->callback_);
+ TAO_AV_RTCP_Callback *cb = dynamic_cast<TAO_AV_RTCP_Callback*> (this->callback_);
cb->ts_offset (ts_offset);
}
@@ -540,8 +538,7 @@ int
TAO_AV_RTCP_Callback::send_report (int bye)
{
// get the RTCP control object in order to get the ssrc
- TAO_AV_RTCP_Object *rtcp_prot_obj = ACE_dynamic_cast (TAO_AV_RTCP_Object*,
- this->protocol_object_);
+ TAO_AV_RTCP_Object *rtcp_prot_obj = dynamic_cast<TAO_AV_RTCP_Object*> (this->protocol_object_);
ACE_UINT32 my_ssrc = rtcp_prot_obj->ssrc ();
RTCP_Packet *cp;
@@ -668,8 +665,7 @@ TAO_AV_RTCP_Callback::send_report (int bye)
sdes.add_item (my_ssrc,
RTCP_SDES_CNAME,
- ACE_static_cast (unsigned char,
- ACE_OS::strlen(this->output_.cname())),
+ static_cast<unsigned char> (ACE_OS::strlen(this->output_.cname())),
this->output_.cname());
if (bye)
{
@@ -784,7 +780,7 @@ TAO_AV_RTCP_Callback::receive_frame (ACE_Message_Block *frame,
{
RTCP_Channel_In *c;
- RTP_Packet packet (frame->rd_ptr(), ACE_static_cast (int, frame->length()));
+ RTP_Packet packet (frame->rd_ptr(), static_cast<int> (frame->length()));
if (this->inputs_.find (packet.ssrc(), c) < 0)
{
@@ -803,7 +799,7 @@ TAO_AV_RTCP_Callback::receive_frame (ACE_Message_Block *frame,
int
TAO_AV_RTCP_Callback::send_frame (ACE_Message_Block *frame)
{
- RTP_Packet packet (frame->rd_ptr(), ACE_static_cast (int, frame->length()));
+ RTP_Packet packet (frame->rd_ptr(), static_cast<int> (frame->length()));
this->output_.updateStatistics (&packet);
return 0;