]> source.dussan.org Git - tigervnc.git/commitdiff
[Developement] All decoders have pointer to record output stream.
authorenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Wed, 24 Dec 2008 03:58:29 +0000 (03:58 +0000)
committerenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Wed, 24 Dec 2008 03:58:29 +0000 (03:58 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3448 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tightvnc/vncviewer/VncCanvas.java

index 56d414803dc60e3a55088f2521b67ba6671cb1e3..4cd2e935a09e494f86af2721cec08dba8a593674 100644 (file)
@@ -117,6 +117,8 @@ class VncCanvas extends Canvas
 
     // 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 @@ class VncCanvas extends Canvas
 
     for (int i = 0; i < decoders.length; i++) {
       decoders[i].setSessionRecorder(this);
+      decoders[i].setDataOutputStream(ros);
     }
 
     setPixelFormat();