]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
messure bandwidth of MPEGTS packets
authorJohn Törnblom <john.tornblom@gmail.com>
Thu, 18 Oct 2012 21:20:55 +0000 (23:20 +0200)
committerJohn Törnblom <john.tornblom@gmail.com>
Thu, 18 Oct 2012 21:21:50 +0000 (23:21 +0200)
src/subscriptions.c

index 0f816ba271575f212384570cd898da8a270c65dd..ca5b1675acd22280b6065c2e3f96d425c906d502 100644 (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);