From 483a6ffa328e8699d156633ab3e0016171e11dd8 Mon Sep 17 00:00:00 2001 From: mannol Date: Tue, 17 Feb 2015 23:34:40 +0100 Subject: Added 2 new headers into msi for buffer control --- toxav/rtp.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'toxav/rtp.c') 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 @@ /** rtp.c * - * Copyright (C) 2013 Tox project All Rights Reserved. + * Copyright (C) 2013-2015 Tox project All Rights Reserved. * * This file is part of Tox. * @@ -333,8 +333,6 @@ RTPMessage *msg_parse ( const uint8_t *data, int length ) return NULL; } - retu->next = NULL; - return retu; } @@ -415,8 +413,6 @@ RTPMessage *rtp_new_message ( RTPSession *session, const uint8_t *data, uint32_t retu->length = total_length; - retu->next = NULL; - return retu; } @@ -497,7 +493,7 @@ int rtp_send_msg ( RTPSession *session, const uint8_t *data, uint16_t length ) if ( -1 == send_custom_lossy_packet(session->m, session->dest, msg->data, msg->length) ) { LOGGER_WARNING("Failed to send full packet (len: %d)! std error: %s", length, strerror(errno)); rtp_free_msg ( session, msg ); - return rtp_ErrorSending; + return -1; } -- cgit v1.2.3