From: Andre Noll Date: Thu, 31 Dec 2009 18:29:24 +0000 (+0100) Subject: alsa: Kill unnecessary -B option. X-Git-Tag: v0.4.2~221 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=e1c7483ab86de8a2e84c4aa6fc9116faba4ccfcf;p=paraslash.git alsa: Kill unnecessary -B option. --- diff --git a/alsa_write.c b/alsa_write.c index 5959545f..e2ca45b6 100644 --- a/alsa_write.c +++ b/alsa_write.c @@ -159,18 +159,13 @@ static int alsa_open_btr(struct writer_node *wn) } static int alsa_open(struct writer_node *wn) { - struct alsa_write_args_info *conf = wn->conf; - - if (conf->buffer_tree_given) + if (wn->btrn) return alsa_open_btr(wn); - else - return alsa_open_nobtr(wn); - + return alsa_open_nobtr(wn); } static int alsa_write_pre_select(struct sched *s, struct writer_node *wn) { - struct alsa_write_args_info *conf = wn->conf; struct private_alsa_write_data *pad = wn->private_data; struct writer_node_group *wng = wn->wng; struct timeval tv; @@ -178,7 +173,7 @@ static int alsa_write_pre_select(struct sched *s, struct writer_node *wn) if (!pad->handle) return 1; - if (conf->buffer_tree_given) { + if (wn->btrn) { size_t sz = btr_get_input_queue_size(wn->btrn); if (sz < pad->bytes_per_frame) return 1; diff --git a/ggo/alsa_write.m4 b/ggo/alsa_write.m4 index 3f2654b4..afcefccf 100644 --- a/ggo/alsa_write.m4 +++ b/ggo/alsa_write.m4 @@ -1,5 +1,4 @@ include(header.m4) -include(buffer_tree.m4) option "device" d