Merge branch 'jb_new' of https://github.com/balajeesv/rtpengine into jb_new

pull/926/head
Balajee SV 5 years ago
commit 220c96aea4

@ -2261,7 +2261,7 @@ no_stats_output:
ps = l->data;
send_timer_put(&ps->send_timer);
jb_put(&ps->jb);
jb_put(&ps->jb);
__unkernelize(ps);
dtls_shutdown(ps);
ps->selected_sfd = NULL;

@ -258,8 +258,8 @@ static void decrement_buffer(struct jitter_buffer *jb) {
static void set_jitter_values(struct media_packet *mp) {
struct jitter_buffer *jb = mp->stream->jb;
if(!jb || !mp->rtp)
return;
if(!jb || !mp->rtp)
return;
int curr_seq = ntohs(mp->rtp->seq_num);
if(jb->next_exp_seq) {
mutex_lock(&jb->lock);

@ -50,10 +50,10 @@ void jb_packet_free(struct jb_packet **jbp);
void jitter_buffer_loop(void *p);
INLINE void jb_put(struct jitter_buffer **jb) {
if (!*jb)
return;
obj_put(&(*jb)->ttq.tt_obj);
*jb = NULL;
if (!*jb)
return;
obj_put(&(*jb)->ttq.tt_obj);
*jb = NULL;
}
#endif

Loading…
Cancel
Save