X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=write.c;h=2ea9d2132bee5f64224f3f9d635af8f83777a33e;hb=75d545612d8fb51b7e6b2f8a7349b54502004cfa;hp=8411003027e33ad3a9bcc43962efcf65547dea04;hpb=c773ec0d537d239e2eebe2d77a786f0ba49fdc22;p=paraslash.git diff --git a/write.c b/write.c index 84110030..2ea9d213 100644 --- a/write.c +++ b/write.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2010 Andre Noll + * Copyright (C) 2005-2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -37,8 +37,9 @@ struct check_wav_task { int state; /** Number of channels. */ unsigned channels; - unsigned sample_rate; unsigned sample_format; + /** Sample rate specified in wav header given by \a buf. */ + unsigned sample_rate; /** The task structure used by the scheduler. */ struct task task; struct btr_node *btrn; @@ -215,6 +216,7 @@ out: w->close(wn); btr_free_node(wn->btrn); + w->free_config(wn->conf); free(wn->conf); } free(wns);