X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=oss_write.c;h=70a58203db8a2f2e3eca5cfc12506334ed7133da;hp=df9608a8c6a2bbb9b3787df76ce8ec7931604e16;hb=38c80b2b03dc357fbc28f8ba04764f1e1741078a;hpb=7584638594109184f329bead008f1dcdd9030767 diff --git a/oss_write.c b/oss_write.c index df9608a8..70a58203 100644 --- a/oss_write.c +++ b/oss_write.c @@ -88,7 +88,6 @@ static int oss_init(struct writer_node *wn, unsigned sample_rate, struct oss_write_args_info *conf = wn->conf; struct private_oss_write_data *powd = para_calloc(sizeof(*powd)); - wn->private_data = powd; PARA_INFO_LOG("opening %s\n", conf->device_arg); ret = para_open(conf->device_arg, O_WRONLY, 0); if (ret < 0) @@ -149,6 +148,7 @@ static int oss_init(struct writer_node *wn, unsigned sample_rate, sample_rate); } wn->min_iqs = powd->bytes_per_frame; + wn->private_data = powd; return 1; err: close(powd->fd);