Update the time position 4 times in 1 second (every 250 ms).
It reduces the time twinkling.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@119 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx
index 94513d1..4fd2d27 100644
--- a/rfbplayer/rfbplayer.cxx
+++ b/rfbplayer/rfbplayer.cxx
@@ -398,6 +398,7 @@
 
 void RfbPlayer::run() {
   long initTime = -1;
+  long update_time = GetTickCount();
 
   // Process the rfb messages
   while (fRun) {
@@ -406,8 +407,10 @@
         setPos(initTime);
         initTime = -1;
       }
-      if (!isSeeking())
+      if ((!isSeeking()) && ((GetTickCount() - update_time) >= 250)) {
         updatePos();
+        update_time = GetTickCount();
+      }
       processMsg();
     } catch (rdr::Exception e) {
       if (strcmp(e.str(), "[End Of File]") == 0) {