[Bugfix] Saving actual numbers of records read from the .fbi file.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2605 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/java/src/com/tightvnc/rfbplayer/FbsConnection.java b/java/src/com/tightvnc/rfbplayer/FbsConnection.java
index 66d9e54..3dc2cf5 100644
--- a/java/src/com/tightvnc/rfbplayer/FbsConnection.java
+++ b/java/src/com/tightvnc/rfbplayer/FbsConnection.java
@@ -35,6 +35,7 @@
/** Index data loaded from the .fbi file. */
FbsEntryPoint[] idx;
+ int numIndexRecords;
FbsConnection(String fbsLocation, String indexLocationPrefix, Applet applet)
throws MalformedURLException {
@@ -57,6 +58,7 @@
// Try to load the .fbi index file.
idx = null;
+ numIndexRecords = 0;
loadIndex();
}
@@ -134,6 +136,7 @@
return;
}
idx = newIndex;
+ numIndexRecords = numRecordsRead;
System.err.println("Loaded index data, " + numRecordsRead + " records");
}
}