[Developement] All decoders have pointer to record output stream.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3448 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/java/src/com/tightvnc/vncviewer/VncCanvas.java b/java/src/com/tightvnc/vncviewer/VncCanvas.java
index 56d4148..4cd2e93 100644
--- a/java/src/com/tightvnc/vncviewer/VncCanvas.java
+++ b/java/src/com/tightvnc/vncviewer/VncCanvas.java
@@ -117,6 +117,8 @@
// Input stream for decoders
RfbInputStream rfbis = new RfbInputStream(rfb);
+ // Create output stream for session recording
+ RecordOutputStream ros = new RecordOutputStream(this);
rawDecoder = new RawDecoder(memGraphics, rfbis);
rreDecoder = new RREDecoder(memGraphics, rfbis);
@@ -152,6 +154,7 @@
for (int i = 0; i < decoders.length; i++) {
decoders[i].setSessionRecorder(this);
+ decoders[i].setDataOutputStream(ros);
}
setPixelFormat();