lib: graph.c: call bt_graph_consume_no_check() in bt_graph_run()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 18 Aug 2017 20:03:17 +0000 (16:03 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 17 Sep 2017 18:10:50 +0000 (14:10 -0400)
This is why bt_graph_consume_no_check() exists in the first place, to
avoid checking arguments and the cancel state every time considering
that it's already checked.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/graph/graph.c

index 0c18ef62bf7dbbfe42a9b5164845473bb0353265..cb197eed098414eba0698773c2823f5aec41d802 100644 (file)
@@ -529,7 +529,7 @@ enum bt_graph_status bt_graph_run(struct bt_graph *graph)
                        goto end;
                }
 
-               status = bt_graph_consume(graph);
+               status = bt_graph_consume_no_check(graph);
                if (status == BT_GRAPH_STATUS_AGAIN) {
                        /*
                         * If AGAIN is received and there are multiple
This page took 0.025868 seconds and 4 git commands to generate.