Fix seek of empty stream
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Tue, 15 May 2012 18:58:16 +0000 (14:58 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Tue, 15 May 2012 19:21:28 +0000 (15:21 -0400)
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTraceReader.java

index ac758b3a9e969a05534bcdae87a5891a2e8c8770..55eeb7bd9140ad3cb3b1e3adb65034cecefdde08 100644 (file)
@@ -302,7 +302,10 @@ public class CTFTraceReader {
         }
         int count = prio.size();
         for (int i = 0; i < (count - 1); i++) {
-            advance();
+            /*
+             * Cull all the streams aside from the last one
+             */
+            prio.poll();
         }
     }
 
This page took 0.026767 seconds and 5 git commands to generate.