messure bandwidth of MPEGTS packets

This commit is contained in:
John Törnblom 2012-10-18 23:20:55 +02:00
parent 014f55a463
commit 8c78d6a7cc

View file

@ -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);