From a5bbfdd438d4be17b3b5d3d6c9816e390855d96e Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 2 Jul 2004 19:47:26 +0000 Subject: [PATCH] fix interrupt and end position git-svn-id: http://ltt.polymtl.ca/svn@620 04897980-b3bd-0310-b5e0-8ef037075253 --- .../modules/gui/lttvwindow/lttvwindow/callbacks.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index edf0f522..e190aad4 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -633,6 +633,13 @@ gboolean lttvwindow_process_pending_requests(Tab *tab) /* Else, the first request in list_in is a position request */ /* If first req in list_in pos != current pos */ g_assert(events_request->start_position != NULL); + g_debug("SEEK POS time : %lu, %lu", + lttv_traceset_context_position_get_time(events_request->start_position).tv_sec, + lttv_traceset_context_position_get_time(events_request->start_position).tv_nsec); + + g_debug("SEEK POS context time : %lu, %lu", + lttv_traceset_context_get_current_tfc(tsc)->timestamp.tv_sec, + lttv_traceset_context_get_current_tfc(tsc)->timestamp.tv_nsec); if(lttv_traceset_context_ctx_pos_compare(tsc, events_request->start_position) != 0) { /* 1.2.2.1 Seek to that position */ @@ -920,10 +927,10 @@ gboolean lttvwindow_process_pending_requests(Tab *tab) ltt_time_compare(tfc->timestamp, events_request->end_time) >= 0 || - (events_request->start_position != NULL + (events_request->end_position != NULL && lttv_traceset_context_ctx_pos_compare(tsc, - events_request->start_position) != 0) + events_request->end_position) != 0) ) { g_assert(events_request->servicing == TRUE); -- 2.34.1