Commit 772fb28d authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed msgdup + renamed packet injection method

parent 9bab17dd
......@@ -41,6 +41,8 @@ void mblk_init(mblk_t *mp)
void mblk_meta_copy(const mblk_t *source, mblk_t *dest) {
dest->reserved1 = source->reserved1;
dest->reserved2 = source->reserved2;
memcpy(&dest->net_addr,&source->net_addr,source->net_addrlen);
dest->net_addrlen = source->net_addrlen;
#if defined(ORTP_TIMESTAMP)
dest->timestamp = source->timestamp;
#endif
......
......@@ -1102,7 +1102,7 @@ static IceTransaction * ice_find_transaction(const IceCheckList *cl, const IceCa
static int ice_send_message_to_socket(const RtpTransport * rtpt,char* buf,size_t len, const struct sockaddr *to, socklen_t tolen) {
mblk_t *m = rtp_session_create_packet_raw((const uint8_t *)buf, len);
int err = meta_rtp_transport_modifier_inject_packet_to(rtpt
int err = meta_rtp_transport_modifier_inject_packet_to_send_to(rtpt
, NULL
, m
, 0
......
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