diff options
author | irungentoo <irungentoo@gmail.com> | 2014-06-20 10:01:27 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-06-20 10:01:27 -0400 |
commit | aba37b0f712be21332094f9220e4227fb401823d (patch) | |
tree | 8f70e741b3d832beced276cedcd991e6f9af5a39 /toxav/rtp.c | |
parent | 9b2d3e50b20f4aeaca059b951bd7079c0b554233 (diff) | |
parent | 88a131a2e8ea0780f9719f18970ee581c32724b5 (diff) |
Merge branch 'mannol1-master'
Diffstat (limited to 'toxav/rtp.c')
-rw-r--r-- | toxav/rtp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/toxav/rtp.c b/toxav/rtp.c index 8cead4c9..1b18777f 100644 --- a/toxav/rtp.c +++ b/toxav/rtp.c | |||
@@ -603,10 +603,11 @@ int rtp_release_session_recv ( RTPSession *session ) | |||
603 | */ | 603 | */ |
604 | void rtp_queue_adjust_limit(RTPSession *session, uint64_t limit) | 604 | void rtp_queue_adjust_limit(RTPSession *session, uint64_t limit) |
605 | { | 605 | { |
606 | RTPMessage *_tmp, * _it; | ||
607 | pthread_mutex_lock(&session->mutex); | 606 | pthread_mutex_lock(&session->mutex); |
608 | 607 | ||
609 | for ( _it = session->oldest_msg; session->queue_size > limit; _it = _tmp ) { | 608 | RTPMessage *_tmp, * _it = session->oldest_msg; |
609 | |||
610 | for ( ; session->queue_size > limit; _it = _tmp ) { | ||
610 | _tmp = _it->next; | 611 | _tmp = _it->next; |
611 | rtp_free_msg( session, _it); | 612 | rtp_free_msg( session, _it); |
612 | session->queue_size --; | 613 | session->queue_size --; |