Stop RTCP runner in MediaStream destructor

This commit is contained in:
Aaro Altonen 2020-08-13 05:25:25 +03:00
parent 6b5ec3b5c0
commit e1a28d095a
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ uvg_rtp::media_stream::~media_stream()
{
pkt_dispatcher_->stop();
if (ctx_config_.flags & RCE_RTCP)
rtcp_->stop();
delete socket_;
delete rtcp_;
delete rtp_;