Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/ulalaca-xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGyuhwan Park <unstabler@unstabler.pl>2022-06-02 04:59:07 +0300
committerGyuhwan Park <unstabler@unstabler.pl>2022-06-02 04:59:07 +0300
commit9ae6181d6d40f7851a0a45780dc3913f63b40a99 (patch)
tree3ff91e043323b83884746a068515fe2a4fe7af63
parent11372faa40dd48cd44d8bc891cdfd06d00458931 (diff)
fix: remove useless frame drop code
-rw-r--r--ulalaca.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/ulalaca.cpp b/ulalaca.cpp
index d9800ed..618bf7e 100644
--- a/ulalaca.cpp
+++ b/ulalaca.cpp
@@ -304,6 +304,7 @@ std::unique_ptr<std::vector<XrdpUlalaca::Rect>> XrdpUlalaca::createCopyRects(
}
void XrdpUlalaca::addDirtyRect(Rect &rect) {
+ std::scoped_lock<std::mutex> scopedCommitLock(_commitUpdateLock);
_dirtyRects.push_back(rect);
}
@@ -316,11 +317,6 @@ void XrdpUlalaca::commitUpdate(const uint8_t *image, int32_t width, int32_t heig
server_reset(this, width, height, _bpp);
}
- if ((_frameId - _ackFrameId) > 4) {
- _dirtyRects.clear();
- return;
- }
-
if (_frameId > 0 && _dirtyRects.empty()) {
return;
}