*
* 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
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;
}
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");