diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-11-10 13:02:12 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-11-27 10:57:41 +0100 |
commit | 8635062c071d23bf75dc4d9be598ee39a735d891 (patch) | |
tree | 974a2256c37ef5b3fbcd9d8dac77ff39e4fe6201 /common/rfb/DecodeManager.cxx | |
parent | f22d350e75e798863927c54031fc5dc5e84ae3c4 (diff) | |
download | tigervnc-8635062c071d23bf75dc4d9be598ee39a735d891.tar.gz tigervnc-8635062c071d23bf75dc4d9be598ee39a735d891.zip |
Decouple decoders from CConnection
Diffstat (limited to 'common/rfb/DecodeManager.cxx')
-rw-r--r-- | common/rfb/DecodeManager.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/rfb/DecodeManager.cxx b/common/rfb/DecodeManager.cxx index f6ffa4b6..b82d31d2 100644 --- a/common/rfb/DecodeManager.cxx +++ b/common/rfb/DecodeManager.cxx @@ -19,6 +19,7 @@ #include <assert.h> #include <string.h> +#include <rfb/CConnection.h> #include <rfb/DecodeManager.h> #include <rfb/Decoder.h> @@ -53,11 +54,11 @@ void DecodeManager::decodeRect(const Rect& r, int encoding, } if (!decoders[encoding]) { - decoders[encoding] = Decoder::createDecoder(encoding, conn); + decoders[encoding] = Decoder::createDecoder(encoding); if (!decoders[encoding]) { vlog.error("Unknown encoding %d", encoding); throw rdr::Exception("Unknown encoding"); } } - decoders[encoding]->readRect(r, pb); + decoders[encoding]->readRect(r, conn->getInStream(), conn->cp, pb); } |