Shorten copyright notice. The GPLv2 line does not add any additional information, so drop it. This leaves a single line of legalese text for most files, which is about the amount of screen real estate it deserves. This patch was created with the following script (plus some manual fixups): awk '{ if (NR <= 5) { gs = gensub(/.*Copyright.* ([0-9]+).*Andre Noll.*/, "\\1", "g") if (gs != $0) year = gs next } if (NR == 6 && year != "") printf("/* Copyright (C) %s Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */\n", year) print }'
Update year in copyright headers. Done with files=$(git grep -l 'Copyright (C) [0-9]\{4\}\(-2014\)* Andre Noll') sed --in-place= -e 's/Copyright (C) \([0-9]\{4\}\)-2014 Andre Noll/Copyright (C) \1 Andre Noll/1' $files In previous years we ran a similar script to set the second year in the range to the current year. This is kind of silly, so let's get rid of this useless information. This commit replaces "Copyright (C) A-B" by "Copyright (C) A" in all file headers, i.e. only the first year (A) is left in. Accurate information including time stamps for each change can be obtained from the git history.
doc: Change email address to maan@tuebingen.mpg.de The mail server on systemlinux.org was down for more than a week lately, so let's use an alternative official address. This commit changes all maan@systemlinux.org addresses to maan@tuebingen.mpg.de. Most .c and .h files contain the email address in the copyright header, so they must all be patched. Three other files contain the address for a different reason: * README lists email and git, gitweb and home page URLs * configure.ac needs it for configure -h * version.c contains it for the -V option of all commands
Change copyright year to 2014. This year, we're really on time. The changes in this patch were created by the following silly script: files=$(git grep -l 'Copyright (C) [0-9]\{4\}\(-2013\)* Andre Noll') sed --in-place= -e 's/Copyright (C) \([0-9]\{4\}\)-2013 Andre Noll/Copyright (C) \1-2014 Andre Noll/1' $files sed --in-place= -e 's/Copyright (C) 2013 Andre Noll/Copyright (C) 2013-2014 Andre Noll/1' $files
buffer_tree: Improve btr_splice_out_node(). This changes btr_splice_out_node() to take a pointer to a btrn, just like btr_remove_node(). This allows to set the variable to NULL after the node has been spliced out. The callers are updated accordingly.
Change copyright year to 2013. Better late than never.
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.
Merge branch 't/btr_improvements' 146316 btr_exec_up(): Also ask given node. 6d9c35 btr: Introduce btr_add_output_dont_free(). 4ac313 btr: Remove btr_free_node(). Has been cooking in next for a week.
btr: Introduce btr_add_output_dont_free(). At the moment, all buffers which are fed to a buffer tree must be allocated on the heap since the buffer tree code automatically frees the buffer once its refcount dropped to zero. The new afh receiver, however, mmaps the audio file and likes to feed chunks of this memory map into the buffer tree. This is currently impossible because such buffers must not be freed. This patch adds the new public function btr_add_output_dont_free() which works like btr_add_output() but sets the new dont_free bit which prevents the buffer from being deallocated. Also btr_inplace_ok() is changed to return "false" whenever there exists a buffer in the input queue with the dont_free bit set.
btr: Remove btr_free_node(). This has turned out to be source for bugs. Deallocate everything in btr_remove_node() hence making removing the node and freeing its resources an atomic operation. To avoid dangling pointers to freed btrn nodes, the argument of btr_remove_node() is changed to to struct btr_node **btrnp.
buffer_tree.h: Fix gcc warning. "loglevel" is declared as a global variable elsewhere, and gcc-3.3.3 complains beacuse of this: buffer_tree.h:199: warning: declaration of `loglevel' shadows a global declaration Just call the thing "ll".
Change year in copyright message to 2012.
btr: Introduce btr_next_buffer_omit(). This function is useful for the flac decoder.
Replace 2010 in copyright message by 2011.
audiod: Handle crashes of para_server more robustly. In case para_server dies unexpectedly, para_audiod may still have a partial status item in the buffer tree node of the client task which can lead to a busy loop. Fix this by flushing the input queue and invalidate the current audio format to prevent recreating a buffer tree before the status task resumes. There is already flush_input_queue() in buffer_tree.c but that can't be called by audiod.c as it is a static function. Make it public and rename it to btr_drain() which is shorter and more to the point and has the usual btr_ prefix.
Change year in COPYRIGHT to 2010. Hey, this is earlier than last year :)
btr: Rename btr_bytes_pending() and make it public. The oggvorbis decoder needs to know this info, so make it public. As we have already btr_get_input_queue_size() it is natural to rename btr_bytes_pending() to btr_get_output_queue_size().
Introduce btr_pool_get_buffers(). This allows the users of the buffer pool API to obtain references to both parts of the buffer pool area in case there is free space available at the end of the area as well as at the beginning. This is needed for reading from file descriptors where reading less than a full datagram would discard the remaining part (DCCP and UDP).
[btr] Complete source code documentation.
[btr] Add more documentation.