From 8c78d6a7cc72815bab1d4575a231185ef3875e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rnblom?= Date: Thu, 18 Oct 2012 23:20:55 +0200 Subject: [PATCH] messure bandwidth of MPEGTS packets --- src/subscriptions.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/subscriptions.c b/src/subscriptions.c index 0f816ba2..ca5b1675 100644 --- a/src/subscriptions.c +++ b/src/subscriptions.c @@ -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);