Add missing bandwidth to TS UDP output

This commit is contained in:
Thulinma 2017-10-25 11:13:02 +02:00
parent 3e4dca8f84
commit a97d3e8d27

View file

@ -110,6 +110,7 @@ namespace Mist {
static int curFilled = 0; static int curFilled = 0;
if (curFilled == udpSize){ if (curFilled == udpSize){
pushSock.SendNow(packetBuffer); pushSock.SendNow(packetBuffer);
myConn.addUp(packetBuffer.size());
packetBuffer.clear(); packetBuffer.clear();
packetBuffer.reserve(udpSize * len); packetBuffer.reserve(udpSize * len);
curFilled = 0; curFilled = 0;