From 8635062c071d23bf75dc4d9be598ee39a735d891 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 10 Nov 2015 13:02:12 +0100 Subject: Decouple decoders from CConnection --- common/rfb/DecodeManager.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/rfb/DecodeManager.cxx') 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 #include +#include #include #include @@ -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); } -- cgit v1.2.3