- Always update rtcp-mux attribute when remote sdp is received
- make sure to stop ICE engine even if RTP manager is not started
This commit is contained in:
parent
e18af84cd2
commit
4dca974cc1
|
@ -685,7 +685,10 @@ int tdav_session_av_set_ro(tdav_session_av_t* self, const struct tsdp_header_M_s
|
|||
self->remote_port = m->port;
|
||||
|
||||
/* RTCP-MUX */
|
||||
self->use_rtcpmux = (tsdp_header_M_findA(m, "rtcp-mux") != tsk_null);
|
||||
self->use_rtcpmux &= (tsdp_header_M_findA(m, "rtcp-mux") != tsk_null);
|
||||
if(self->ice_ctx){
|
||||
tnet_ice_ctx_set_rtcpmux(self->ice_ctx, self->use_rtcpmux);
|
||||
}
|
||||
|
||||
/* SDPCapNeg: RFC 5939 */
|
||||
{
|
||||
|
|
|
@ -829,8 +829,8 @@ int trtp_manager_stop(trtp_manager_t* self)
|
|||
return -1;
|
||||
}
|
||||
|
||||
if(!self->is_started){
|
||||
return 0;
|
||||
if(self->ice_ctx){
|
||||
ret = tnet_ice_ctx_stop(self->ice_ctx);
|
||||
}
|
||||
|
||||
// Stop the RTCP session first (will send BYE)
|
||||
|
|
Loading…
Reference in New Issue