Create RTCP participant right away in src/media_stream.cc

This commit is contained in:
Aaro Altonen 2020-08-10 08:18:10 +03:00
parent 7927f3682d
commit dd4bf1249e
1 changed files with 3 additions and 1 deletions

View File

@ -144,8 +144,10 @@ rtp_error_t uvg_rtp::media_stream::init()
return RTP_MEMORY_ERROR;
}
if (ctx_config_.flags & RCE_RTCP)
if (ctx_config_.flags & RCE_RTCP) {
rtcp_->add_participant(addr_, src_port_ + 1, dst_port_ + 1, rtp_->get_clock_rate());
rtcp_->start();
}
initialized_ = true;
return pkt_dispatcher_->start(&socket_, ctx_config_.flags);