fix seek backbard : rare condition
[lttv.git] / ltt / branches / poly / lttv / lttv / tracecontext.c
index ea7cdf62eddc00e7798f67c1b2d4d255a8db41fa..98ffffa7f29aea1d066c4174886bb8c0f101ddb9 100644 (file)
@@ -1458,7 +1458,8 @@ guint lttv_process_traceset_seek_n_backward(LttvTracesetContext *self,
     }
     /* if we have the same time twice, it means we are at the beginning of the
      * trace, and we seek back at the same position */
-    if(ltt_time_compare(last_time, time) == 0) break;
+    if(ltt_time_compare(last_time, time) == 0 
+        && ltt_time_compare(time, self->time_span.start_time) == 0) break;
     last_time = time;
 
     /* Process the traceset, calling a hook which adds events 
This page took 0.024171 seconds and 4 git commands to generate.