diff options
author | mannol <eniz_vukovic@hotmail.com> | 2015-02-17 23:34:40 +0100 |
---|---|---|
committer | mannol <eniz_vukovic@hotmail.com> | 2015-02-17 23:34:40 +0100 |
commit | 483a6ffa328e8699d156633ab3e0016171e11dd8 (patch) | |
tree | 78f7f6e555ad589a9242b93803023f30e2aa4ee3 /toxav/rtp.c | |
parent | 7329f3b3d461a8f7738fa4b13a2dffc8d6a5b5f5 (diff) |
Added 2 new headers into msi for buffer control
Diffstat (limited to 'toxav/rtp.c')
-rw-r--r-- | toxav/rtp.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/toxav/rtp.c b/toxav/rtp.c index a50dd7ce..396e0202 100644 --- a/toxav/rtp.c +++ b/toxav/rtp.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /** rtp.c | 1 | /** rtp.c |
2 | * | 2 | * |
3 | * Copyright (C) 2013 Tox project All Rights Reserved. | 3 | * Copyright (C) 2013-2015 Tox project All Rights Reserved. |
4 | * | 4 | * |
5 | * This file is part of Tox. | 5 | * This file is part of Tox. |
6 | * | 6 | * |
@@ -333,8 +333,6 @@ RTPMessage *msg_parse ( const uint8_t *data, int length ) | |||
333 | return NULL; | 333 | return NULL; |
334 | } | 334 | } |
335 | 335 | ||
336 | retu->next = NULL; | ||
337 | |||
338 | return retu; | 336 | return retu; |
339 | } | 337 | } |
340 | 338 | ||
@@ -415,8 +413,6 @@ RTPMessage *rtp_new_message ( RTPSession *session, const uint8_t *data, uint32_t | |||
415 | 413 | ||
416 | retu->length = total_length; | 414 | retu->length = total_length; |
417 | 415 | ||
418 | retu->next = NULL; | ||
419 | |||
420 | return retu; | 416 | return retu; |
421 | } | 417 | } |
422 | 418 | ||
@@ -497,7 +493,7 @@ int rtp_send_msg ( RTPSession *session, const uint8_t *data, uint16_t length ) | |||
497 | if ( -1 == send_custom_lossy_packet(session->m, session->dest, msg->data, msg->length) ) { | 493 | 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)); | 494 | LOGGER_WARNING("Failed to send full packet (len: %d)! std error: %s", length, strerror(errno)); |
499 | rtp_free_msg ( session, msg ); | 495 | rtp_free_msg ( session, msg ); |
500 | return rtp_ErrorSending; | 496 | return -1; |
501 | } | 497 | } |
502 | 498 | ||
503 | 499 | ||