]> git.tue.mpg.de Git - paraslash.git/log
paraslash.git
16 years agoserver.c: Add some more Doxygen links.
Andre Noll [Sat, 12 Apr 2008 19:42:10 +0000 (21:42 +0200)]
server.c: Add some more Doxygen links.

16 years agoweb/index.html: Fix link to man pages.
Andre Noll [Sat, 12 Apr 2008 19:41:47 +0000 (21:41 +0200)]
web/index.html: Fix link to man pages.

16 years agoDoxyfile: Add HAVE_FAAD to INCLUDE_FILE_PATTERNS.
Andre Noll [Sat, 12 Apr 2008 19:41:22 +0000 (21:41 +0200)]
Doxyfile: Add HAVE_FAAD to INCLUDE_FILE_PATTERNS.

16 years agoReplace ipc error codes by system error codes.
Andre Noll [Sat, 12 Apr 2008 18:17:56 +0000 (20:17 +0200)]
Replace ipc error codes by system error codes.

16 years agoipc.c: Cosmetics.
Andre Noll [Sat, 12 Apr 2008 18:02:23 +0000 (20:02 +0200)]
ipc.c: Cosmetics.

16 years agocom_si(): Report also the afs pid.
Andre Noll [Sat, 12 Apr 2008 17:46:37 +0000 (19:46 +0200)]
com_si(): Report also the afs pid.

Replace mmd->server_pid by mmd->afs_pid because everybody
can easily find out the server pid.

16 years agoSimplify vss_status_tohuman() and add a comment.
Andre Noll [Sat, 12 Apr 2008 17:34:04 +0000 (19:34 +0200)]
Simplify vss_status_tohuman() and add a comment.

16 years agocommand.c: Remove a useless use of the mmd lock.
Andre Noll [Sat, 12 Apr 2008 17:22:08 +0000 (19:22 +0200)]
command.c: Remove a useless use of the mmd lock.

16 years agoKill mmd_lock() and mmd_unlock().
Andre Noll [Sat, 12 Apr 2008 17:18:58 +0000 (19:18 +0200)]
Kill mmd_lock() and mmd_unlock().

They were only wrappers for mutex_lock() and mutex_unlock().
So export the lock, use mutex_lock() and mutex_unlock()
everywhere and remove the wrappers.

16 years agoFix documentation of cq_update().
Andre Noll [Sat, 12 Apr 2008 17:02:21 +0000 (19:02 +0200)]
Fix documentation of cq_update().

16 years agoMake para_server use the generic scheduling code.
Andre Noll [Sat, 12 Apr 2008 17:01:47 +0000 (19:01 +0200)]
Make para_server use the generic scheduling code.

16 years agoIntroduce sched->select_function.
Andre Noll [Sat, 12 Apr 2008 14:25:13 +0000 (16:25 +0200)]
Introduce sched->select_function.

para_server needs this for locking.

16 years agoaudiod.c: Fix signal number in log output.
Andre Noll [Sat, 12 Apr 2008 14:23:42 +0000 (16:23 +0200)]
audiod.c: Fix signal number in log output.

16 years agoMake scheduler structs static.
Andre Noll [Sat, 12 Apr 2008 14:22:59 +0000 (16:22 +0200)]
Make scheduler structs static.

16 years agovss: Include map in the vss task struct.
Andre Noll [Sat, 12 Apr 2008 12:37:07 +0000 (14:37 +0200)]
vss: Include map in the vss task struct.

16 years agochunk_queue: Store a pointer to the data and the chunk size.
Andre Noll [Sat, 12 Apr 2008 12:35:16 +0000 (14:35 +0200)]
chunk_queue: Store a pointer to the data and the chunk size.

Storing the chunk number has the disadvantage that the
queuing code must call into vss to get the chunk. This
is unneccessary and requires the map pointer of vss.c
to be global.

16 years agoIntroduce the vss task.
Andre Noll [Sat, 12 Apr 2008 12:12:19 +0000 (14:12 +0200)]
Introduce the vss task.

16 years agoserver: Introduce server_command_task.
Andre Noll [Sat, 12 Apr 2008 11:26:14 +0000 (13:26 +0200)]
server: Introduce server_command_task.

It's not a real task yet, but this change is a preparation
in order to convert para_server to the paraslash scheduling
system.

16 years agoserver: Fix stop mode.
Andre Noll [Sat, 12 Apr 2008 11:02:47 +0000 (13:02 +0200)]
server: Fix stop mode.

Do not try to unmap the audio file twice.

16 years agoserver: Introduce command_{pre,post}_select().
Andre Noll [Sat, 12 Apr 2008 10:54:53 +0000 (12:54 +0200)]
server: Introduce command_{pre,post}_select().

Also make listen_fd global, and annotate handle_connect() with
__noreturn.

16 years agoserver.c: Introduce server_select().
Andre Noll [Sat, 12 Apr 2008 10:00:22 +0000 (12:00 +0200)]
server.c: Introduce server_select().

16 years agoMove struct senders[] from server.c to vss.c.
Andre Noll [Sat, 12 Apr 2008 07:51:57 +0000 (09:51 +0200)]
Move struct senders[] from server.c to vss.c.

16 years agoInit mmd->sender_cmd_data.cmd_num in vss_init().
Andre Noll [Sat, 12 Apr 2008 07:46:40 +0000 (09:46 +0200)]
Init mmd->sender_cmd_data.cmd_num in vss_init().

16 years agoHandle sender commands in vss_post_select().
Andre Noll [Sat, 12 Apr 2008 07:43:57 +0000 (09:43 +0200)]
Handle sender commands in vss_post_select().

16 years agoMake vss_send_chunk() static.
Andre Noll [Sat, 12 Apr 2008 07:31:08 +0000 (09:31 +0200)]
Make vss_send_chunk() static.

16 years agoCall sender functions from vss.c rather than from server.c.
Andre Noll [Sat, 12 Apr 2008 07:24:58 +0000 (09:24 +0200)]
Call sender functions from vss.c rather than from server.c.

16 years agoSimplify vss_presselect().
Andre Noll [Sat, 12 Apr 2008 07:12:31 +0000 (09:12 +0200)]
Simplify vss_presselect().

16 years agoOnly call vss_eof() from vss_preselect().
Andre Noll [Sat, 12 Apr 2008 06:44:07 +0000 (08:44 +0200)]
Only call vss_eof() from vss_preselect().

16 years agovss: Check the afs socket either for reading or for writing.
Andre Noll [Sat, 12 Apr 2008 06:19:01 +0000 (08:19 +0200)]
vss: Check the afs socket either for reading or for writing.

16 years agoSimplify vss_preselect().
Andre Noll [Sat, 12 Apr 2008 05:49:37 +0000 (07:49 +0200)]
Simplify vss_preselect().

Obviously an equivalent transformation.

16 years agovss_preselect(): Use single return.
Andre Noll [Sat, 12 Apr 2008 05:38:43 +0000 (07:38 +0200)]
vss_preselect(): Use single return.

16 years agoDo not call vss_post_select() if para_select() failed.
Andre Noll [Sat, 12 Apr 2008 05:31:57 +0000 (07:31 +0200)]
Do not call vss_post_select() if para_select() failed.

16 years agonew codename, reset version to git
Andre Noll [Fri, 11 Apr 2008 17:14:10 +0000 (19:14 +0200)]
new codename, reset version to git

16 years agothe paraslash-0.3.2 release tarball
Andre Noll [Fri, 11 Apr 2008 17:09:45 +0000 (19:09 +0200)]
the paraslash-0.3.2 release tarball

16 years agoparaslash 0.3.2 v0.3.2
Andre Noll [Fri, 11 Apr 2008 17:05:47 +0000 (19:05 +0200)]
paraslash 0.3.2

16 years agoServer/audiod option parsing improvements.
Andre Noll [Fri, 11 Apr 2008 17:05:07 +0000 (19:05 +0200)]
Server/audiod option parsing improvements.

Do not refuse to start if -L is given in config file and -d at the
command line.

Without this patch, para_server and para_audiod would error out
complaining about -d requiring -L without even looking at the config
file.

16 years agoKill unused error code AFS_PARENT_DIED.
Andre Noll [Thu, 10 Apr 2008 04:59:54 +0000 (06:59 +0200)]
Kill unused error code AFS_PARENT_DIED.

16 years agoaudioc: Make all fds non-blocking.
Andre Noll [Thu, 10 Apr 2008 04:55:31 +0000 (06:55 +0200)]
audioc: Make all fds non-blocking.

16 years agoDo not call close_listed_fds() in para_exec().
Andre Noll [Mon, 7 Apr 2008 17:46:57 +0000 (19:46 +0200)]
Do not call close_listed_fds() in para_exec().

para_fade and para_gui, the only two users of exec.o, do not care
about the close on fork list. So do not link close_on_fork.o into
these executables.

16 years agoexec and fade cleanups.
Andre Noll [Mon, 7 Apr 2008 17:36:14 +0000 (19:36 +0200)]
exec and fade cleanups.

Use para_open in exec.c and add error logging.

fade.c: Add proper error return values and error checking.

16 years agoGet rid of E_MUNMAP.
Andre Noll [Sun, 6 Apr 2008 12:38:29 +0000 (14:38 +0200)]
Get rid of E_MUNMAP.

Use the system error code instead.

16 years agoclient.c: supervisor task should use post_select instead of pre_select.
Andre Noll [Sun, 6 Apr 2008 10:50:29 +0000 (12:50 +0200)]
client.c: supervisor task should use post_select instead of pre_select.

This allows to get rid of the ugly min_delay hack. This works
because the supervisor task is registered _after_ the client
task. So when the client task changes its state to either
CL_RECEIVING or CL_SENDING in its post_select function, the
supervisor task will start the stdin/stout task in the same
iteration of the scheduler post_select loop.

16 years agoFix NULL pointer dereference for stdin commands.
Andre Noll [Sun, 6 Apr 2008 10:33:46 +0000 (12:33 +0200)]
Fix NULL pointer dereference for stdin commands.

16 years agoafh.ggo: Clarify --no_header help text.
Andre Noll [Sat, 5 Apr 2008 21:52:57 +0000 (23:52 +0200)]
afh.ggo: Clarify --no_header help text.

16 years agopara_afh: Accept negative values for begin_chunk and end_chunk.
Andre Noll [Sat, 5 Apr 2008 21:52:03 +0000 (23:52 +0200)]
para_afh: Accept negative values for begin_chunk and end_chunk.

Negative values are interpreted as offsets counted from the
end of the audio file.

16 years agoFix the man page generation fix.
Andre Noll [Fri, 4 Apr 2008 12:41:10 +0000 (14:41 +0200)]
Fix the man page generation fix.

16 years agoMerge commit 'remotes/lamarck/master'
Andre Noll [Fri, 4 Apr 2008 12:19:45 +0000 (14:19 +0200)]
Merge commit 'remotes/lamarck/master'

16 years agoconfigure.ac: Fix afh_ldflags on Solaris.
Andre Noll [Fri, 4 Apr 2008 12:40:05 +0000 (14:40 +0200)]
configure.ac: Fix afh_ldflags on Solaris.

For some reason, Solaris needs -logg.

16 years agoaudiod.c Solaris needs signal.h.
Andre Noll [Fri, 4 Apr 2008 12:39:48 +0000 (14:39 +0200)]
audiod.c Solaris needs signal.h.

16 years agoFix generation of man pages on Solaris.
Andre Noll [Fri, 4 Apr 2008 12:39:33 +0000 (14:39 +0200)]
Fix generation of man pages on Solaris.

Solaris echo is too stupid to tell.

16 years agoconfigure.ac: Update configure output of the paraslash configuration.
Andre Noll [Fri, 4 Apr 2008 12:19:43 +0000 (14:19 +0200)]
configure.ac: Update configure output of the paraslash configuration.

16 years agoRewrite audiod help text.
Andre Noll [Wed, 2 Apr 2008 23:11:42 +0000 (01:11 +0200)]
Rewrite audiod help text.

16 years agoUpdate help text for audiod's kill command.
Andre Noll [Wed, 2 Apr 2008 23:11:04 +0000 (01:11 +0200)]
Update help text for audiod's kill command.

16 years agoaudiod.ggo: Kill unused --stream_timeout option.
Andre Noll [Wed, 2 Apr 2008 21:33:07 +0000 (23:33 +0200)]
audiod.ggo: Kill unused --stream_timeout option.

16 years agoGrab cleanups and fixes.
Andre Noll [Wed, 2 Apr 2008 21:08:09 +0000 (23:08 +0200)]
Grab cleanups and fixes.

Change semantics of the filter number to zero-based.

16 years agoaudiod: Fix decoder restart barrier.
Andre Noll [Wed, 2 Apr 2008 20:24:01 +0000 (22:24 +0200)]
audiod: Fix decoder restart barrier.

16 years agoMerge commit 'remotes/fml/master'
Andre Noll [Wed, 2 Apr 2008 20:12:11 +0000 (22:12 +0200)]
Merge commit 'remotes/fml/master'

16 years agoUpdate documentation of activate_grab_client().
Andre Noll [Wed, 2 Apr 2008 20:12:07 +0000 (22:12 +0200)]
Update documentation of activate_grab_client().

16 years agoSimplify activate_inactive_grab_clients().
Andre Noll [Wed, 2 Apr 2008 07:56:54 +0000 (09:56 +0200)]
Simplify activate_inactive_grab_clients().

16 years agoNEWS update.
Andre Noll [Tue, 1 Apr 2008 22:46:02 +0000 (00:46 +0200)]
NEWS update.

16 years agoaudiod: Get rid of the audiod task.
Andre Noll [Tue, 1 Apr 2008 22:41:49 +0000 (00:41 +0200)]
audiod: Get rid of the audiod task.

It's simpler to start/stop the decoders from status_pre_select()
because this is the point where we get the recent status info from
para_server.

In particular, this allows to kill the min_delay crap in
the audiod_pre_select() which now gets called from
status_pre_select(). Rename it to start_stop_decoders() as
this is what that function does.

16 years agoFix com_stat() for arguments greater than one.
Andre Noll [Tue, 1 Apr 2008 21:26:22 +0000 (23:26 +0200)]
Fix com_stat() for arguments greater than one.

It behaved like it was given a non-positive arg in this case.

16 years agoFix another bug in stdout.c.
Andre Noll [Tue, 1 Apr 2008 21:24:29 +0000 (23:24 +0200)]
Fix another bug in stdout.c.

This one caused the first chunk of data to be swallowed.

16 years agoclient.c: Add status info.
Andre Noll [Tue, 1 Apr 2008 20:42:17 +0000 (22:42 +0200)]
client.c: Add status info.

16 years agoclient.c: Fix error value of supervisor task.
Andre Noll [Tue, 1 Apr 2008 20:42:00 +0000 (22:42 +0200)]
client.c: Fix error value of supervisor task.

16 years agoFix a bug in stdout.c.
Andre Noll [Tue, 1 Apr 2008 20:41:05 +0000 (22:41 +0200)]
Fix a bug in stdout.c.

16 years agoMake unregister_task() static.
Andre Noll [Tue, 1 Apr 2008 20:18:31 +0000 (22:18 +0200)]
Make unregister_task() static.

It has no more users outside sched.c.

16 years agoUpdate documentation for stdin.c and stdout.c.
Andre Noll [Tue, 1 Apr 2008 20:17:11 +0000 (22:17 +0200)]
Update documentation for stdin.c and stdout.c.

It contained some outdated comments.

16 years agostdin: Don't set sit->loaded.
Andre Noll [Tue, 1 Apr 2008 20:16:23 +0000 (22:16 +0200)]
stdin: Don't set sit->loaded.

It's pointless because the only users of stdin allocate a
static struct for the stdin task.

16 years agoFix two typos in stdin.c.
Andre Noll [Tue, 1 Apr 2008 20:09:41 +0000 (22:09 +0200)]
Fix two typos in stdin.c.

16 years agoKill unused wng_unregister().
Andre Noll [Tue, 1 Apr 2008 20:07:56 +0000 (22:07 +0200)]
Kill unused wng_unregister().

16 years agowng_open(): Defer registering the wng task.
Andre Noll [Tue, 1 Apr 2008 20:05:46 +0000 (22:05 +0200)]
wng_open(): Defer registering the wng task.

This way we do not have to unregister it on errors.

16 years agoaudiod: Rewrite status task logic.
Andre Noll [Tue, 1 Apr 2008 20:01:28 +0000 (22:01 +0200)]
audiod: Rewrite status task logic.

As the status task does not use any file descriptors, it's
OK to do everything in one function. So kill status_post_select()
and move the code to status_pre_select().

16 years agounregister_task(): Print what caused the task to shutdown.
Andre Noll [Tue, 1 Apr 2008 19:59:24 +0000 (21:59 +0200)]
unregister_task(): Print what caused the task to shutdown.

16 years agounregister_task(): Set error status to E_TASK_UNREGISTERED
Andre Noll [Tue, 1 Apr 2008 19:57:33 +0000 (21:57 +0200)]
unregister_task(): Set error status to E_TASK_UNREGISTERED

This way the users know when it's safe to free the memory
containing the task struct.

16 years agokill_task(): Only set task error status.
Andre Noll [Tue, 1 Apr 2008 19:55:26 +0000 (21:55 +0200)]
kill_task(): Only set task error status.

It's not safe to call unregister_task() at this point as
this function might be called from pre_select() or post_select().
Just set the task's error value to -E_TASK_KILLED. The task
will then be unregistered on the next iteration of the
scheduler loop.

16 years agoMerge commit 'remotes/fml/master'
Andre Noll [Tue, 1 Apr 2008 17:01:40 +0000 (19:01 +0200)]
Merge commit 'remotes/fml/master'

16 years agoafs.c: Make open_next_audio_file() static.
Andre Noll [Tue, 1 Apr 2008 09:29:11 +0000 (11:29 +0200)]
afs.c: Make open_next_audio_file() static.

16 years agoafs.c: Get rid of unregister_tasks().
Andre Noll [Tue, 1 Apr 2008 09:28:52 +0000 (11:28 +0200)]
afs.c: Get rid of unregister_tasks().

Call shed_shutdown() instead. Also make read errors from the
afs - server pipe fatal.

16 years agoaudiod: Don't unregister tasks, just set the error value.
Andre Noll [Mon, 31 Mar 2008 23:07:03 +0000 (01:07 +0200)]
audiod: Don't unregister tasks, just set the error value.

This is a first step to get rid of unregister_task().

16 years agofilter: Switch from linked lists to arrays.
Andre Noll [Mon, 31 Mar 2008 22:23:58 +0000 (00:23 +0200)]
filter: Switch from linked lists to arrays.

The number of filters is known and never changes, so it's easier
to use arrays.

16 years agosched: Only call pre/post select hooks if tasks are not in error state.
Andre Noll [Mon, 31 Mar 2008 20:35:06 +0000 (22:35 +0200)]
sched: Only call pre/post select hooks if tasks are not in error state.

16 years agoFix afs shutdown.
Andre Noll [Mon, 31 Mar 2008 17:08:34 +0000 (19:08 +0200)]
Fix afs shutdown.

In case para_server dies, the afs process must unregister all
tasks in order to shut down cleanly.

16 years agoDocumentation updates and cleanups.
Andre Noll [Mon, 31 Mar 2008 12:02:15 +0000 (14:02 +0200)]
Documentation updates and cleanups.

16 years agosched.c: Cosmetic cleanups.
Andre Noll [Mon, 31 Mar 2008 11:56:15 +0000 (13:56 +0200)]
sched.c: Cosmetic cleanups.

16 years agoafs: Shutdown the scheduler if a fatal signal was caught.
Andre Noll [Mon, 31 Mar 2008 11:52:51 +0000 (13:52 +0200)]
afs: Shutdown the scheduler if a fatal signal was caught.

This fixes the problem that the afs database was not marked clean
and thus had to be checked if para_server was interupted by a
signal.

16 years agoExport sched_shutdown().
Andre Noll [Mon, 31 Mar 2008 11:51:02 +0000 (13:51 +0200)]
Export sched_shutdown().

16 years agosched.c: Add checks for empty lists.
Andre Noll [Mon, 31 Mar 2008 11:50:43 +0000 (13:50 +0200)]
sched.c: Add checks for empty lists.

This allows to call shed_shutdown() from the pre/post select hooks
of the tasks.

16 years agoaudiod.c: Fix stat task restarting.
Andre Noll [Mon, 31 Mar 2008 11:15:37 +0000 (13:15 +0200)]
audiod.c: Fix stat task restarting.

16 years agoungegister_task(): Set task error value to -E_TASK_KILLED.
Andre Noll [Mon, 31 Mar 2008 11:11:46 +0000 (13:11 +0200)]
ungegister_task(): Set task error value to -E_TASK_KILLED.

This way, one can be sure that a negative value in t->error means
this task will not be scheduled again.

16 years agoSimplify the scheduling code.
Andre Noll [Sun, 30 Mar 2008 20:56:16 +0000 (22:56 +0200)]
Simplify the scheduling code.

- Get rid of sched->select_ret. Tasks shouldn't care about the
return value of the select call.

- Kill task->private_data. Use container_of() instead.

- Remove task->event_handler. It is never necessary and only
makes the code more convoluted. The scheduler unregisters
tasks as soon as either the pre_select or the post_select
functions return an error.

- Rename task->ret to task->error and get rid of a couple
of error fields in other structs that usually only contained
a copy of the task's error value.

This conversion likely introduces many bugs that have to be
shaken out in subsequent patches. Hopefully it will result in
less error-prone code in the long run.

16 years agoAdd documentation for the loglevel argument of para_server.
Andre Noll [Sun, 30 Mar 2008 14:21:02 +0000 (16:21 +0200)]
Add documentation for the loglevel argument of para_server.

16 years agoIncrease aggressiveness of the compress filter.
Andre Noll [Sun, 30 Mar 2008 14:20:24 +0000 (16:20 +0200)]
Increase aggressiveness of the compress filter.

16 years agoFix lsatt command.
Andre Noll [Sat, 29 Mar 2008 11:42:54 +0000 (12:42 +0100)]
Fix lsatt command.

16 years agoFix afs signal handling.
Andre Noll [Tue, 25 Mar 2008 07:47:34 +0000 (08:47 +0100)]
Fix afs signal handling.

afs must not abort on SIGPIPE as the client may close the
connection at any time. This bug was there forever but showed
up only now because the recent callback changes made the afs
process write to the command handler socket multiple times.

Also ignore SIGUSR1 instead of catching and ignoring it.

16 years agoUpdate doxygen documentation.
Andre Noll [Tue, 25 Mar 2008 00:19:21 +0000 (01:19 +0100)]
Update doxygen documentation.

16 years agoComplete the afs callback conversion.
Andre Noll [Mon, 24 Mar 2008 23:18:01 +0000 (00:18 +0100)]
Complete the afs callback conversion.

This makes it possible for the callbacks to pass a partial
result buffer through the command handler <-> callback socket.
This removes a serious limitation of previous paraslash-0.3.x
versions: As callbacks could not send data directly to the
command handler they had to store the full command output in
a buffer. This buffer was sent to the command handler after the
callback returns.

The problem with this approach is that it caused the callbacks
to  allocate large amounts of memory. If that amount exceeded what
can be stored in a shared memory area (32MB on Linux), the command
even failed.

The fix consists of adding a max_size field and a max_size_handler
function pointer to the para_buffer structure. Whenever para_printf()
would need to allocate more memory than specified by max_size, it
calls the max_size_handler which is supposed to send out the data.
para_printf then prints the requested data into the old but now
empty buffer.

Almost all users set the max_size_handler to pass_buffer_as_shm(),
a helper function implemented in afs.c that copies the buffer to
a shared memory area and sends its identifier through the socket.

16 years agoIntroduce pass_object_as_shm().
Andre Noll [Mon, 24 Mar 2008 15:04:21 +0000 (16:04 +0100)]
Introduce pass_object_as_shm().

This singles out the code for passing data from the callback
to the command handler. The plan is to change the callbacks
so that they call this function whenever the result buffer
is too large to fit into a shared memory area.

16 years agomake send_callback_request() and friends take a result handler.
Andre Noll [Mon, 24 Mar 2008 14:20:28 +0000 (15:20 +0100)]
make send_callback_request() and friends take a result handler.

This is a first step to overcome a design flaw in the afs
callback code: The output of the commands is currently
stored in an osl object that is copied to a shared memory
area whose shmid is passed back to the command handler
via the local socket. This method limits the size of the
command output to the maximal size that can be stored in
a shared memory area which is not enough to hold large
outputs like that of ls -c.

This patch allows the command handlers to pass a result handler
function instead of an osl object. This result handler is
called for each shared memory area that gets sent through the
local socket.

Further patches will change the callbacks so that they pass
multiple result buffers instead of returning a single buffer.
This has the additional advantage that partial command output
produced by the callback can be sent even before the callback
returns. This parital output is seen immediately by the command
handler.

16 years agoFix use of uninitialized afhi->header_len.
Andre Noll [Wed, 19 Mar 2008 20:51:46 +0000 (21:51 +0100)]
Fix use of uninitialized afhi->header_len.

In aft's add_one_audio_file() we set the header len and
the header offset to zero so that the get_file_info()
functions of the audio format handlers that do not use
headers don't need to zero these fields.

However, this is not the right place to do that as para_afh
also calls get_file_info() via compute_afhi() but missed to
clear these fields which leads to a segmentation fault.

Fix this bug by moving the zeroing to compute_afhi().