]>
git.tue.mpg.de Git - paraslash.git/log
Andre Noll [Sat, 30 Jan 2010 13:15:10 +0000 (14:15 +0100)]
audiod: Fix time diff log message.
The average time diff was always displayed as "+".
Andre Noll [Sat, 30 Jan 2010 13:13:35 +0000 (14:13 +0100)]
time.c: tv_convex_combination() fixes.
Fix some typos, make it return zero if both coefficients are zero.
Andre Noll [Sat, 30 Jan 2010 13:07:03 +0000 (14:07 +0100)]
wma: Defer decoding until two data blocks are available.
This avoids buffer underruns caused by frames that span two blocks.
Andre Noll [Sat, 23 Jan 2010 13:29:57 +0000 (14:29 +0100)]
audiod: Request a minimal delay if the status buffer tree node is in error state.
This happens during startup and causes a large delay.
Andre Noll [Tue, 19 Jan 2010 11:38:29 +0000 (12:38 +0100)]
[btr] Complete source code documentation.
Andre Noll [Tue, 19 Jan 2010 01:44:40 +0000 (02:44 +0100)]
[btr] Add more documentation.
Andre Noll [Tue, 19 Jan 2010 00:54:29 +0000 (01:54 +0100)]
configure.ac: Remove some unused AC_SUBST() exports.
Andre Noll [Tue, 19 Jan 2010 00:38:28 +0000 (01:38 +0100)]
configure: Don't mention the list of supported senders/receivers.
It is the constant list http, dccp, udp.
Andre Noll [Tue, 19 Jan 2010 00:21:32 +0000 (01:21 +0100)]
Don't hardcode the list of executables in Makefile.in.
Just export the list via the $all_executables variable from configure.ac. Rename it to
$ececutables while we're at it and remove two unused variables in configure.ac.
Andre Noll [Mon, 18 Jan 2010 23:53:52 +0000 (00:53 +0100)]
Build para_audiod unconditionally.
The wma decoder will always be build, so the case of no supported
audio files can not happen.
Andre Noll [Mon, 18 Jan 2010 23:36:15 +0000 (00:36 +0100)]
Remove some unused error codes.
Andre Noll [Mon, 18 Jan 2010 09:52:32 +0000 (10:52 +0100)]
Don't use ENAVAIL.
NetBSD doesn't know it, and the error text does not fit well. So replace
it by a paraslash error message.
Andre Noll [Mon, 18 Jan 2010 09:28:33 +0000 (10:28 +0100)]
Fix some format string warnings on x86_64.
Andre Noll [Sun, 17 Jan 2010 20:36:41 +0000 (21:36 +0100)]
Merge branch 'master' into next
Conflicts:
stdin.c
Andre Noll [Sun, 17 Jan 2010 20:32:19 +0000 (21:32 +0100)]
Merge branch 'maint'
Andre Noll [Sun, 17 Jan 2010 20:32:11 +0000 (21:32 +0100)]
Merge remote branch 'athcx/maint' into maint
Andre Noll [Sun, 17 Jan 2010 20:30:27 +0000 (21:30 +0100)]
[btr]: Avoid a gcc warning.
Although the warning
warning: 'brs[1]' may be used uninitialized in this function
is clearly bogus, it can't hurt to assert that i == 2 which also makes the warning to away.
Andre Noll [Sun, 17 Jan 2010 12:29:05 +0000 (13:29 +0100)]
[btr] Only print debug message if we're really increasing the wrap buffer.
Andre Noll [Sun, 17 Jan 2010 12:27:46 +0000 (13:27 +0100)]
[btr] Documentation update.
Andre Noll [Fri, 15 Jan 2010 20:41:06 +0000 (21:41 +0100)]
audiod cleanups.
It's pointless to change the scheduler's timeout during post_select().
Andre Noll [Fri, 15 Jan 2010 19:22:27 +0000 (20:22 +0100)]
[btr] Add more documentation.
Andre Noll [Fri, 15 Jan 2010 19:21:57 +0000 (20:21 +0100)]
client: Fix a memory leak in client_post_select().
Andre Noll [Fri, 15 Jan 2010 19:21:13 +0000 (20:21 +0100)]
sched: Reset the descriptor sets on timeouts.
This is certainly not neccessary on linux, but it does not hurt
and is clearly more portable.
Andre Noll [Fri, 15 Jan 2010 19:19:30 +0000 (20:19 +0100)]
alsa: Replace check for pending frames on eof by a barrier.
The old code could lead to a an endless loop where the alsa writer
would never be unscheduled.
Andre Noll [Fri, 15 Jan 2010 06:59:54 +0000 (07:59 +0100)]
[btr] Add more documentation.
Andre Noll [Fri, 15 Jan 2010 06:41:19 +0000 (07:41 +0100)]
[btr] Add more documentation.
Andre Noll [Fri, 15 Jan 2010 06:06:56 +0000 (07:06 +0100)]
stdin/stdout cleanup.
para_client was the last user of the non-btr code in stdin.[ch]
and stdout.[ch]. Remove this unused code and update the documentation.
Andre Noll [Fri, 15 Jan 2010 05:46:03 +0000 (06:46 +0100)]
btr support for para_client.
The use of the client code in audiod requires a node to be inserted
as the _parent_ of some existing node, which was not neccessary
before. Therefore a new btrn pointer for the child node is added to
struct btr_node_description and btr_new_node() is adjusted accordingly.
The patch also adds a small helper sched_request_barrier() to
the scheduler.
Andre Noll [Thu, 14 Jan 2010 22:59:05 +0000 (23:59 +0100)]
[btr] log message cleanups.
Andre Noll [Thu, 14 Jan 2010 22:58:00 +0000 (23:58 +0100)]
[btr] Add a comment to btr_pool_available().
Andre Noll [Thu, 14 Jan 2010 22:57:22 +0000 (23:57 +0100)]
[btr] btr_node_status(): Node pointer should never be NULL.
Andre Noll [Thu, 14 Jan 2010 22:49:57 +0000 (23:49 +0100)]
filter.h: Document that the ->close method need not be provided.
Andre Noll [Thu, 14 Jan 2010 22:48:24 +0000 (23:48 +0100)]
audiod: Add a paranoia check to close_writers().
Andre Noll [Thu, 14 Jan 2010 22:24:24 +0000 (23:24 +0100)]
Add documentation of struct btr_node and btr_pool.
Andre Noll [Thu, 14 Jan 2010 21:58:54 +0000 (22:58 +0100)]
[btr] Fix btr_get_input_queue_size().
We must take care of wrap buffers when computing the input queue size.
Andre Noll [Thu, 14 Jan 2010 03:19:59 +0000 (04:19 +0100)]
Introduce btr_node_description.
As the number of arguments to btr_new_node() grows, the code becomes
hard to read, especially since some callers must set many of the
arguments to NULL.
Using a pointer to a struct has the additional advantage that adding
new parameters does no longer require to touch all callers.
Andre Noll [Thu, 14 Jan 2010 00:19:12 +0000 (01:19 +0100)]
file_write: Use para_open() and set the fd to non-blocking mode.
Andre Noll [Wed, 13 Jan 2010 23:11:46 +0000 (00:11 +0100)]
[btr] Fix merge_input_pool().
This function contained the following bug: wbr, buf1 and sz1 could
be used without being initialized. This was sometimes hitting the
assertion (buf1 && buf2).
Fix this by initializing these variables at the top.
Andre Noll [Wed, 13 Jan 2010 22:39:32 +0000 (23:39 +0100)]
Skip btr suffix from {pre,post}_select_btr().
Everything uses btr now, so there's no need for a suffix any more.
Update the documentation a bit.
Andre Noll [Wed, 13 Jan 2010 22:31:17 +0000 (23:31 +0100)]
Kill unused writer_node_group code.
Andre Noll [Wed, 13 Jan 2010 22:17:58 +0000 (23:17 +0100)]
file_write: Use sched_min_delay().
Andre Noll [Wed, 13 Jan 2010 22:16:01 +0000 (23:16 +0100)]
file_write: Kill ->fd of struct private_file_write_data.
Also, simplify the logic in file_write_post_select_btr() a bit.
Andre Noll [Wed, 13 Jan 2010 22:08:30 +0000 (23:08 +0100)]
file_write: Kill non-btr code.
Also, don't free the config on close.
Andre Noll [Wed, 13 Jan 2010 21:40:23 +0000 (22:40 +0100)]
oss fixes and cleanups.
- Kill ->samplerate and ->channels of struct private_oss_write_data.
- Don't invalidate the config on close().
- Simplify oss_pre_select_btr().
Andre Noll [Wed, 13 Jan 2010 21:01:55 +0000 (22:01 +0100)]
oss: Kill non-btr code.
Andre Noll [Wed, 13 Jan 2010 20:57:50 +0000 (21:57 +0100)]
alsa: Kill non-btr code.
Andre Noll [Wed, 13 Jan 2010 20:46:28 +0000 (21:46 +0100)]
write: Kill non-btr mode.
Yes, this breaks the build on Macs. Sue me.
Andre Noll [Wed, 13 Jan 2010 20:44:35 +0000 (21:44 +0100)]
Make writers remove btr node on errors.
This is what receivers/filters do as well.
Andre Noll [Wed, 13 Jan 2010 06:40:45 +0000 (07:40 +0100)]
filter_common: Use sched_min_delay() helper.
Andre Noll [Wed, 13 Jan 2010 06:39:57 +0000 (07:39 +0100)]
client.c: Add comment on the supervisor task.
Andre Noll [Wed, 13 Jan 2010 06:37:00 +0000 (07:37 +0100)]
mp3dec: Don't check for bad data delay on errors.
Andre Noll [Wed, 13 Jan 2010 06:35:38 +0000 (07:35 +0100)]
mp3dec does not need --buffer_tree.
Andre Noll [Wed, 13 Jan 2010 06:33:50 +0000 (07:33 +0100)]
stdin: Avoid overrun errors.
Request a timeout of 100ms if the buffer pool is full rather
than returning an error.
Andre Noll [Wed, 13 Jan 2010 06:16:32 +0000 (07:16 +0100)]
alsa: Ignore errors from the btr query.
Just use default values in case samplerate and channels can not
be obtained from parent nodes of the buffer tree.
Andre Noll [Wed, 13 Jan 2010 06:14:50 +0000 (07:14 +0100)]
configure.ac: para_client needs time.o.
Andre Noll [Wed, 13 Jan 2010 03:58:54 +0000 (04:58 +0100)]
alsa: Always write as much as possible.
No need to play games with snd_pcm_avail_update().
Andre Noll [Wed, 13 Jan 2010 03:58:19 +0000 (04:58 +0100)]
alsa: Increase timeout on eof to 20ms.
Andre Noll [Wed, 13 Jan 2010 01:54:02 +0000 (02:54 +0100)]
Kill fields buf, loaded and output_error of struct receiver node.
Andre Noll [Wed, 13 Jan 2010 01:39:46 +0000 (02:39 +0100)]
udp_recv: Kill non-btr code.
Andre Noll [Wed, 13 Jan 2010 01:34:31 +0000 (02:34 +0100)]
dccp_recv: Kill non-btr code.
Andre Noll [Wed, 13 Jan 2010 01:30:02 +0000 (02:30 +0100)]
http_recv: Kill non-btr code.
Andre Noll [Wed, 13 Jan 2010 01:22:55 +0000 (02:22 +0100)]
recv: Use buffer tree API unconditionally.
This allows to kill the -B option.
Andre Noll [Wed, 13 Jan 2010 01:17:30 +0000 (02:17 +0100)]
Add btr support for the dccp receiver.
Andre Noll [Tue, 12 Jan 2010 23:33:47 +0000 (00:33 +0100)]
Remove ->shutdown of struct receiver.
All three shutdown functions are stubs.
Andre Noll [Tue, 12 Jan 2010 23:23:54 +0000 (00:23 +0100)]
audiod: Make mode switching (on, off, sb) work again.
It is not sufficient to set the task status to an error value. We
also have to remove the btr node from the buffer tree.
Andre Noll [Tue, 12 Jan 2010 07:14:19 +0000 (08:14 +0100)]
filter.h: Kill some unused fields of struct filter_node.
Andre Noll [Tue, 12 Jan 2010 07:12:44 +0000 (08:12 +0100)]
filter: Remove allocation of filter buffers.
fn->buf is not used any more.
Andre Noll [Tue, 12 Jan 2010 06:52:02 +0000 (07:52 +0100)]
fecdec: Kill some dead code.
fn->btrn is never NULL.
Andre Noll [Tue, 12 Jan 2010 06:30:59 +0000 (07:30 +0100)]
Kill unused filter_node->fc.
Andre Noll [Tue, 12 Jan 2010 06:25:40 +0000 (07:25 +0100)]
filter/audiod: Be nice to filters without close method.
Andre Noll [Tue, 12 Jan 2010 06:17:43 +0000 (07:17 +0100)]
Kill unused struct filter_chain.
Andre Noll [Tue, 12 Jan 2010 06:12:58 +0000 (07:12 +0100)]
More oggdec cleanups.
Andre Noll [Tue, 12 Jan 2010 06:05:00 +0000 (07:05 +0100)]
Kill unused struct filter_callbacks.
Stream grabbing doesn't work with callbacks any more.
Andre Noll [Tue, 12 Jan 2010 06:03:18 +0000 (07:03 +0100)]
Kill global close_filters().
This allows to skip the leading underscore from audiod's
_close_filters().
Andre Noll [Tue, 12 Jan 2010 05:55:44 +0000 (06:55 +0100)]
Kill filter->convert.
Its last user was filter_postselect().
Andre Noll [Tue, 12 Jan 2010 05:54:53 +0000 (06:54 +0100)]
Kill unused filter_post_select().
Andre Noll [Tue, 12 Jan 2010 05:43:48 +0000 (06:43 +0100)]
mp3dec: Kill non-btr code.
Andre Noll [Tue, 12 Jan 2010 05:37:13 +0000 (06:37 +0100)]
aacdec: Kill non-btr code.
Andre Noll [Tue, 12 Jan 2010 05:31:44 +0000 (06:31 +0100)]
oggdec: Kill non-btr code.
Andre Noll [Tue, 12 Jan 2010 05:26:49 +0000 (06:26 +0100)]
prebuffer: Use new sched helper functions.
Andre Noll [Tue, 12 Jan 2010 05:25:52 +0000 (06:25 +0100)]
Prebuffer: Kill non-btr code.
Andre Noll [Tue, 12 Jan 2010 03:36:37 +0000 (04:36 +0100)]
wmadec: Kill non-btr code.
Andre Noll [Tue, 12 Jan 2010 03:33:23 +0000 (04:33 +0100)]
Fecdec: Kill non-btr code.
Andre Noll [Tue, 12 Jan 2010 03:28:02 +0000 (04:28 +0100)]
filter: Print meaningful error message if no filter options are given.
Andre Noll [Tue, 12 Jan 2010 03:11:09 +0000 (04:11 +0100)]
amp: Kill non-btr code.
Andre Noll [Tue, 12 Jan 2010 01:11:22 +0000 (02:11 +0100)]
wav_filter: Kill non-btr code.
Andre Noll [Tue, 12 Jan 2010 01:03:53 +0000 (02:03 +0100)]
compress: Kill non-btr code.
Andre Noll [Tue, 12 Jan 2010 00:47:47 +0000 (01:47 +0100)]
filter: Remove non-btr code.
This paves the street for further filter cleanups which will finally
result in the removal of struct filter_chain.
Andre Noll [Tue, 12 Jan 2010 00:43:30 +0000 (01:43 +0100)]
audiod.h: Remove unused slot_info->fc.
Andre Noll [Tue, 12 Jan 2010 00:10:36 +0000 (01:10 +0100)]
vss: Fix offset handling.
Commit
fb6d93240 (vss: Update offset directly when setting the REPOS
flag.) was buggy. On pause/restart we miss to update mmd->offset,
hence the status items which are sent to the stat clients like audiod
did not contain the correct offset value either which messes up
the time string that audiod sends to its clients (para_gui).
We need to set the new offset both on repos requests and on restart,
do introduce a small helper function for this purpose.
Andre Noll [Tue, 12 Jan 2010 00:01:34 +0000 (01:01 +0100)]
audiod: Fix a bug in try_to_close_slot() for default config.
If the default writer is used because no --writer option was given,
a->num_writers is zero although we have one (the default) writer.
Handle this case correctly to avoid starting the receiver too early.
Andre Noll [Mon, 11 Jan 2010 23:59:16 +0000 (00:59 +0100)]
audiod: Don't open the receiver too early.
Also use sched_request_timeout() instead of setting the timeout
directly.
Andre Noll [Mon, 11 Jan 2010 23:57:24 +0000 (00:57 +0100)]
audiod _close_filters(): Don't segfault if fn is NULL.
Andre Noll [Mon, 11 Jan 2010 23:55:59 +0000 (00:55 +0100)]
audiod: Make writer_cleanup() accept NULL pointer argument.
Andre Noll [Mon, 11 Jan 2010 01:51:08 +0000 (02:51 +0100)]
audiod: Fix time string.
Copy the data which is relevant for generating the string at writer
node start time, i.e. when the writer produced its first output.
Andre Noll [Mon, 11 Jan 2010 00:06:39 +0000 (01:06 +0100)]
audiod: Timing fixes.
Andre Noll [Mon, 11 Jan 2010 00:03:58 +0000 (01:03 +0100)]
udp_recv: Loglevel adjustments.
Andre Noll [Mon, 11 Jan 2010 00:03:11 +0000 (01:03 +0100)]
sched: Add some helper functions.
Andre Noll [Sun, 10 Jan 2010 18:53:22 +0000 (19:53 +0100)]
[btr] Export btr_pool_size().
Andre Noll [Sun, 10 Jan 2010 18:52:19 +0000 (19:52 +0100)]
grab: Implement -n option to specify the name of the btrn.