]> source.dussan.org Git - tigervnc.git/commitdiff
[Refactoring] Write record data to data output interface instead of record interface...
authorenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Wed, 24 Dec 2008 04:12:34 +0000 (04:12 +0000)
committerenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Wed, 24 Dec 2008 04:12:34 +0000 (04:12 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3450 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tightvnc/decoder/RawDecoder.java

index c16989cb266836985c8980924083520823f07581..79cf8896d2e00ed4369e37021f63cda7a8ec9877 100644 (file)
@@ -90,10 +90,10 @@ public class RawDecoder {
           rfbis.readFully(pixels8, dy * framebufferWidth + x, w);
         }
         //
-        // Save decoded data to RecordInterface
+        // Save decoded data to record output stream
         //
-        if (rec.canWrite()) {
-          rec.write(pixels8, dy * framebufferWidth + x, w);
+        if (dos != null) {
+          dos.write(pixels8, dy * framebufferWidth + x, w);
         }
       }
     } else {
@@ -102,10 +102,10 @@ public class RawDecoder {
       for (int dy = y; dy < y + h; dy++) {
         rfbis.readFully(buf);
         //
-        // Save decoded data to RecordInterface
+        // Save decoded data to record output stream
         //
-        if (rec.canWrite()) {
-          rec.write(buf);
+        if (dos != null) {
+          dos.write(buf);
         }
         offset = dy * framebufferWidth + x;
         if (pixels24 != null) {