Merge branch 'mannol1-master'

This commit is contained in:
irungentoo 2014-06-20 10:01:27 -04:00
commit aba37b0f71
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -603,10 +603,11 @@ int rtp_release_session_recv ( RTPSession *session )
*/
void rtp_queue_adjust_limit(RTPSession *session, uint64_t limit)
{
RTPMessage *_tmp, * _it;
pthread_mutex_lock(&session->mutex);
for ( _it = session->oldest_msg; session->queue_size > limit; _it = _tmp ) {
RTPMessage *_tmp, * _it = session->oldest_msg;
for ( ; session->queue_size > limit; _it = _tmp ) {
_tmp = _it->next;
rtp_free_msg( session, _it);
session->queue_size --;