Commit d2467bab authored by johan's avatar johan

Allow RTCP packet injection from transport modifier

parent dffa5e73
......@@ -2060,8 +2060,13 @@ int meta_rtp_transport_modifier_inject_packet(const RtpTransport *t, RtpTranspor
}
/* get back socket from transport session */
to=(struct sockaddr*)&t->session->rtp.gs.rem_addr;
tolen=t->session->rtp.gs.rem_addrlen;
if (m->is_rtp) {
to=(struct sockaddr*)&t->session->rtp.gs.rem_addr;
tolen=t->session->rtp.gs.rem_addrlen;
} else {
to=(struct sockaddr*)&t->session->rtcp.gs.rem_addr;
tolen=t->session->rtcp.gs.rem_addrlen;
}
return meta_rtp_transport_modifier_inject_packet_to(t,tpm,msg,flags,to,tolen);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment