From 668468b3d43d5ea1562ebc0be8de0c98c5601a60 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 31 Jan 2014 12:37:32 +0100 Subject: Encoders/decoders should track the connection object The connection object is a much more appropriate object for the decoders and encoders to keep track of. Besides the streams, it also contains state like connection parameters. --- vncviewer/CConn.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vncviewer') diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx index f5420629..db1a08a5 100644 --- a/vncviewer/CConn.cxx +++ b/vncviewer/CConn.cxx @@ -399,7 +399,7 @@ void CConn::dataRect(const Rect& r, int encoding) } if (!decoders[encoding]) { - decoders[encoding] = Decoder::createDecoder(encoding, reader()); + decoders[encoding] = Decoder::createDecoder(encoding, this); if (!decoders[encoding]) { fprintf(stderr, "Unknown rect encoding %d\n", encoding); throw Exception("Unknown rect encoding"); -- cgit v1.2.3