#include <glib.h>
#include <stdbool.h>
#include <assert.h>
+#include <stdlib.h>
#define IGNORE_ABSOLUTE_PARAM_NAME "ignore-absolute"
*/
muxer_upstream_notif_iter->is_valid = false;
break;
- case BT_NOTIFICATION_ITERATOR_STATUS_END:
+ case BT_NOTIFICATION_ITERATOR_STATUS_END: /* Fall-through. */
+ case BT_NOTIFICATION_ITERATOR_STATUS_CANCELED:
/*
* Notification iterator reached the end: release it. It
* won't be considered again to find the youngest
notif, clock_class);
break;
default:
- assert(false);
+ abort();
}
if (!clock_value) {
muxer_notif_iter, &muxer_upstream_notif_iter,
&next_return_ts);
if (next_return.status < 0 ||
- next_return.status == BT_NOTIFICATION_ITERATOR_STATUS_END) {
+ next_return.status == BT_NOTIFICATION_ITERATOR_STATUS_END ||
+ next_return.status == BT_NOTIFICATION_ITERATOR_STATUS_CANCELED) {
goto end;
}