]> git.tuebingen.mpg.de Git - paraslash.git/commit
Replace check_wav_task by write_task.
authorAndre Noll <maan@systemlinux.org>
Sun, 28 Oct 2012 14:03:55 +0000 (15:03 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 25 Nov 2012 13:08:55 +0000 (14:08 +0100)
commit216399fa29e2c071cd4485c57b6b1c9f4a74057b
treeb5dfbfa7b6fd9720307bf2aecab424be8b7a450d
parent1af65c31171b35e5a5e931e3a4467786e932e145
Replace check_wav_task by write_task.

Besides the task(s) associated with the given writer(s), para_write
currently sets up two other tasks: The stdin task and the check_wav
task.

The resample filter, which is to be introduced in subsequent patches,
also needs the functionality that is provided by the check wav task.
However, as filters are not supposed to create their own tasks, there
should not be a dedicated task instance for checking the wav header.

To overcome this problem we move the task member from
check_wav.c to write.c and rename the check_wav_task struct to
check_wav_context. Hence the ->pre_select and ->post_select methods
become part of para_write that call into check_wav.c to do the work.

The patch is quite large but large parts of the changes are just
trivial cwt -> cwc conversions.
check_wav.c
check_wav.h
write.c