messure bandwidth of MPEGTS packets
This commit is contained in:
parent
014f55a463
commit
8c78d6a7cc
1 changed files with 3 additions and 0 deletions
|
@ -278,6 +278,9 @@ subscription_input(void *opauqe, streaming_message_t *sm)
|
|||
if(pkt->pkt_err)
|
||||
s->ths_total_err++;
|
||||
s->ths_bytes += pkt->pkt_payload->pb_size;
|
||||
} else if(sm->sm_type == SMT_MPEGTS) {
|
||||
pktbuf_t *pb = sm->sm_data;
|
||||
s->ths_bytes += pb->pb_size;
|
||||
}
|
||||
|
||||
streaming_target_deliver(s->ths_output, sm);
|
||||
|
|
Loading…
Add table
Reference in a new issue