]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - buffer_tree.c
Add btr support for the amp filter.
[paraslash.git] / buffer_tree.c
index 5d8e33fc17748dc1347af4f1ec57f15a8b662741..1a6b6e60d3f977d2d99f600d7a872a1b95250312 100644 (file)
@@ -137,6 +137,17 @@ void btr_pushdown(struct btr_node *btrn)
                btr_pushdown_br(br, btrn);
 }
 
+int btr_pushdown_one(struct btr_node *btrn)
+{
+       struct btr_buffer_reference *br;
+
+       if (list_empty(&btrn->input_queue))
+               return 0;
+       br = list_first_entry(&btrn->input_queue, struct btr_buffer_reference, node);
+       btr_pushdown_br(br, btrn);
+       return 1;
+}
+
 /* Return true if this node has no children. */
 bool btr_no_children(struct btr_node *btrn)
 {