From dfa6653cbc3357f3c5509cc8c6d2f0471e51e08f Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Mon, 24 Apr 2017 16:29:39 -0400 Subject: [PATCH] text.pretty: handle AGAIN status MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- plugins/text/pretty/pretty.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/text/pretty/pretty.c b/plugins/text/pretty/pretty.c index 21272d41..88fc521d 100644 --- a/plugins/text/pretty/pretty.c +++ b/plugins/text/pretty/pretty.c @@ -186,13 +186,20 @@ enum bt_component_status pretty_consume(struct bt_private_component *component) ret = BT_COMPONENT_STATUS_END; BT_PUT(pretty->input_iterator); goto end; - default: + case BT_NOTIFICATION_ITERATOR_STATUS_AGAIN: + ret = BT_COMPONENT_STATUS_AGAIN; + goto end; + case BT_NOTIFICATION_ITERATOR_STATUS_OK: break; + default: + ret = BT_COMPONENT_STATUS_ERROR; + goto end; } notification = bt_notification_iterator_get_notification(it); assert(notification); ret = handle_notification(pretty, notification); + end: bt_put(notification); return ret; -- 2.34.1