Unused yet.
#define WRITE_COMMON_ERRORS \
PARA_ERROR(WRITE_COMMON_SYNTAX, "syntax error in write option"), \
+ PARA_ERROR(WRITE_COMMON_EOF, "write: end of file"), \
#define AACDEC_FILTER_ERRORS \
size_t written;
struct btr_node *btrn;
struct task task;
+ size_t min_iqs;
};
/** Describes one supported writer. */
ggo_print_help(&w->help, detailed);
}
}
+
+int prepare_writer_node(struct writer_node *wn)
+{
+ struct btr_node *btrn = wn->btrn;
+ size_t iqs;
+
+ if (btr_eof(btrn))
+ return -E_WRITE_COMMON_EOF;
+ iqs = btr_get_input_queue_size(btrn);
+ if (iqs < wn->min_iqs && !btr_no_parent(btrn))
+ return 0;
+ assert(iqs != 0);
+ /* avoid "buffer too small" errors from the decoder */
+ btr_merge(btrn, wn->min_iqs);
+ return 1;
+}
+
struct writer_node_group *setup_default_wng(void);
void print_writer_helps(int detailed);
struct writer_node *setup_writer_node(const char *arg, struct btr_node *parent);
+int prepare_writer_node(struct writer_node *wn);