Update FSF address
[lttv.git] / lttv / lttv / tracecontext.c
index 165a890f688d49b539ab7f10860746976a032b59..e4f89a72067e4eb3696df9f85ec39be8bf38373b 100644 (file)
@@ -12,8 +12,8 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, 
- * MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA 02110-1301, USA.
  */
 
 #ifdef HAVE_CONFIG_H
@@ -693,13 +693,14 @@ guint lttv_process_traceset_middle(LttvTracesetContext *self,
        
        unsigned count = 0;
                
+        gint last_ret = 0;
        struct bt_ctf_event *bt_event;
        
        LttvEvent event;
 
        while(TRUE) {
 
-               if((count >= nb_events) && (nb_events != G_MAXULONG)) {
+               if(last_ret == TRUE || ((count >= nb_events) && (nb_events != G_MAXULONG))) {
                        break;
                }
 
@@ -712,7 +713,7 @@ guint lttv_process_traceset_middle(LttvTracesetContext *self,
                           to retrieve the right state container */
                        event.state = self->tmpState;
                        
-                       lttv_hooks_call(self->event_hooks, &event);
+                       last_ret = lttv_hooks_call(self->event_hooks, &event);
 
                        if(bt_iter_next(bt_ctf_get_iter(self->iter)) < 0) {
                                printf("ERROR NEXT\n");
This page took 0.023614 seconds and 4 git commands to generate.