Merge pull request #1774 in FS/freeswitch from ~DRAGOS_OANCEA/freeswitch-dragos:FS-11788-fix to master

* commit 'b1ba546139599460e57c2d69cc47fc0949b2dcec':
  FS-11788: JB: packet count on vbw too
This commit is contained in:
Mike Jerris 2019-07-25 19:04:58 -05:00
commit 62640a2ff8
1 changed files with 1 additions and 3 deletions

View File

@ -678,9 +678,7 @@ static inline void add_node(switch_jb_t *jb, switch_rtp_packet_t *packet, switch
}
if (jb->type == SJB_VIDEO) {
if (!switch_test_flag(jb, SJB_QUEUE_ONLY)) {
jb->packet_count++;
}
jb->packet_count++;
if (jb->write_init && check_seq(packet->header.seq, jb->highest_wrote_seq) && check_ts(node->packet.header.ts, jb->highest_wrote_ts)) {
jb_debug(jb, 2, "WRITE frame ts: %u complete=%u/%u n:%u\n", ntohl(node->packet.header.ts), jb->complete_frames , jb->frame_len, jb->visible_nodes);