fix seek backbard : rare condition
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 1 Sep 2005 19:15:54 +0000 (19:15 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 1 Sep 2005 19:15:54 +0000 (19:15 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1108 04897980-b3bd-0310-b5e0-8ef037075253

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.024574 seconds and 4 git commands to generate.