]> git.tuebingen.mpg.de Git - paraslash.git/commit
check_wav: Ask parent nodes before falling back to defaults.
authorAndre Noll <maan@systemlinux.org>
Sun, 28 Oct 2012 14:21:56 +0000 (15:21 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 25 Nov 2012 13:08:55 +0000 (14:08 +0100)
commit37e0dfe7bf7737863c63e515e9ed06c2f479f5a3
tree71c0a10e8b3bbf149d28647ace8d66952491ed93
parent216399fa29e2c071cd4485c57b6b1c9f4a74057b
check_wav: Ask parent nodes before falling back to defaults.

This instructs the ->execute handler of the check_wav task to ask its
parent nodes for the channel count, sample rate and sample format in
case no wav header was found and no value for the query was given at
the command line. Currently this can never succeed, since the only
parent node of the check_wav task is the stdin task, which has no
clue about these things. However, once check_wav is being used by
the resample filter, one parent might be a decoder which can tell.

This requires to add the new public btr_parent() to buffer_tree.c to
let the check_wav node obtain the node to start the search from.
buffer_tree.c
buffer_tree.h
check_wav.c