summaryrefslogtreecommitdiff
path: root/toxav/rtp.c
diff options
context:
space:
mode:
authormannol <eniz_vukovic@hotmail.com>2015-02-01 23:43:54 +0100
committermannol <eniz_vukovic@hotmail.com>2015-02-01 23:43:54 +0100
commit39680f31d0121cef2358507fcea84cacad69893a (patch)
tree0f48a3ed39822a2e8c9d86d99c38badda6575353 /toxav/rtp.c
parent1450c22d01cbb5185ee8eac14657ddf3301d7e48 (diff)
Progress
Diffstat (limited to 'toxav/rtp.c')
-rw-r--r--toxav/rtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxav/rtp.c b/toxav/rtp.c
index ba93e781..a50dd7ce 100644
--- a/toxav/rtp.c
+++ b/toxav/rtp.c
@@ -488,13 +488,13 @@ int rtp_register_for_receiving(RTPSession* session)
488 rtp_handle_packet, session); 488 rtp_handle_packet, session);
489} 489}
490 490
491int rtp_send_msg ( RTPSession *session, Messenger *messenger, const uint8_t *data, uint16_t length ) 491int rtp_send_msg ( RTPSession *session, const uint8_t *data, uint16_t length )
492{ 492{
493 RTPMessage *msg = rtp_new_message (session, data, length); 493 RTPMessage *msg = rtp_new_message (session, data, length);
494 494
495 if ( !msg ) return -1; 495 if ( !msg ) return -1;
496 496
497 if ( -1 == send_custom_lossy_packet(messenger, session->dest, msg->data, msg->length) ) { 497 if ( -1 == send_custom_lossy_packet(session->m, session->dest, msg->data, msg->length) ) {
498 LOGGER_WARNING("Failed to send full packet (len: %d)! std error: %s", length, strerror(errno)); 498 LOGGER_WARNING("Failed to send full packet (len: %d)! std error: %s", length, strerror(errno));
499 rtp_free_msg ( session, msg ); 499 rtp_free_msg ( session, msg );
500 return rtp_ErrorSending; 500 return rtp_ErrorSending;