Text field in the ButtonPanel to show current time offset in seconds.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2507 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/java/src/com/tightvnc/rfbplayer/VncCanvas.java b/java/src/com/tightvnc/rfbplayer/VncCanvas.java
index 58d24de..f421df5 100644
--- a/java/src/com/tightvnc/rfbplayer/VncCanvas.java
+++ b/java/src/com/tightvnc/rfbplayer/VncCanvas.java
@@ -208,6 +208,8 @@
zlibInflater = new Inflater();
tightInflaters = new Inflater[4];
+ player.updatePos();
+
// Main dispatch loop.
while (true) {
@@ -482,6 +484,8 @@
throw new IOException("Unknown RFB message type " + msgType);
}
+ player.updatePos();
+
if (player.getMode() == player.MODE_STOPPED) {
throw new EOFException("Playback stopped");
}