Move frame id updating to a better location
This commit is contained in:
@@ -363,6 +363,9 @@ void EncodeManager::doUpdate(bool allowLossy, const Region& changed_,
|
|||||||
unsigned screenArea;
|
unsigned screenArea;
|
||||||
|
|
||||||
updates++;
|
updates++;
|
||||||
|
if (conn->cp.supportsUdp)
|
||||||
|
((network::UdpStream *) conn->getOutStream(conn->cp.supportsUdp))->setFrameNumber(updates);
|
||||||
|
|
||||||
|
|
||||||
// The video resolution may have changed, check it
|
// The video resolution may have changed, check it
|
||||||
if (conn->cp.kasmPassed[ConnParams::KASM_MAX_VIDEO_RESOLUTION])
|
if (conn->cp.kasmPassed[ConnParams::KASM_MAX_VIDEO_RESOLUTION])
|
||||||
@@ -675,9 +678,6 @@ Encoder *EncodeManager::startRect(const Rect& rect, int type, const bool trackQu
|
|||||||
|
|
||||||
beforeLength = conn->getOutStream(conn->cp.supportsUdp)->length();
|
beforeLength = conn->getOutStream(conn->cp.supportsUdp)->length();
|
||||||
|
|
||||||
if (conn->cp.supportsUdp)
|
|
||||||
((network::UdpStream *) conn->getOutStream(conn->cp.supportsUdp))->setFrameNumber(updates);
|
|
||||||
|
|
||||||
stats[klass][activeType].rects++;
|
stats[klass][activeType].rects++;
|
||||||
stats[klass][activeType].pixels += rect.area();
|
stats[klass][activeType].pixels += rect.area();
|
||||||
equiv = 12 + rect.area() * (conn->cp.pf().bpp/8);
|
equiv = 12 + rect.area() * (conn->cp.pf().bpp/8);
|
||||||
|
|||||||
Reference in New Issue
Block a user