Remove terminate_self()
This function no longer serves any purpose
This commit is contained in:
parent
b1168d8175
commit
be74a58ab1
|
@ -130,9 +130,6 @@ namespace uvg_rtp {
|
|||
uvg_rtp::frame::rtcp_sdes_packet *get_sdes_packet(uint32_t ssrc);
|
||||
uvg_rtp::frame::rtcp_app_packet *get_app_packet(uint32_t ssrc);
|
||||
|
||||
/* create RTCP BYE packet using our own SSRC and send it to all participants */
|
||||
rtp_error_t terminate_self();
|
||||
|
||||
/* Return a reference to vector that contains the sockets of all participants */
|
||||
std::vector<uvg_rtp::socket>& get_sockets();
|
||||
|
||||
|
|
18
src/rtcp.cc
18
src/rtcp.cc
|
@ -78,7 +78,7 @@ rtp_error_t uvg_rtp::rtcp::stop()
|
|||
|
||||
end:
|
||||
/* Send BYE packet with our SSRC to all participants */
|
||||
uvg_rtp::rtcp::terminate_self();
|
||||
return uvg_rtp::rtcp::send_bye_packet({ ssrc_ });
|
||||
|
||||
free_mem:
|
||||
/* free all receiver statistic structs */
|
||||
|
@ -324,22 +324,6 @@ rtp_error_t uvg_rtp::rtcp::update_participant_seq(uint32_t ssrc, uint16_t seq)
|
|||
return RTP_OK;
|
||||
}
|
||||
|
||||
rtp_error_t uvg_rtp::rtcp::terminate_self()
|
||||
{
|
||||
rtp_error_t ret;
|
||||
auto bye_frame = uvg_rtp::frame::alloc_rtcp_bye_frame(1);
|
||||
|
||||
bye_frame->ssrc[0] = ssrc_;
|
||||
|
||||
if ((ret = send_bye_packet(bye_frame)) != RTP_OK) {
|
||||
LOG_ERROR("Failed to send BYE");
|
||||
}
|
||||
|
||||
(void)uvg_rtp::frame::dealloc_frame(bye_frame);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
rtp_error_t uvg_rtp::rtcp::reset_rtcp_state(uint32_t ssrc)
|
||||
{
|
||||
if (participants_.find(ssrc) != participants_.end())
|
||||
|
|
Loading…
Reference in New Issue