<feed xmlns='http://www.w3.org/2005/Atom'>
<title>paraslash/write.h, branch v0.3</title>
<subtitle>paraslash - network audio streaming tools</subtitle>
<id>https://git.tue.mpg.de/cgit/paraslash/atom?h=v0.3</id>
<link rel='self' href='https://git.tue.mpg.de/cgit/paraslash/atom?h=v0.3'/>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/'/>
<updated>2009-11-05T21:42:52Z</updated>
<entry>
<title>wng: Avoid buffer underruns due to filter chain output buffer constraints.</title>
<updated>2009-11-05T21:42:52Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@systemlinux.org</email>
</author>
<published>2009-11-05T21:42:52Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=2ce63f32adf9c47d6ed9604f3cd090229409df05'/>
<id>urn:sha1:2ce63f32adf9c47d6ed9604f3cd090229409df05</id>
<content type='text'>
Using ogg vorbis streams together with the oss writer hits the following nasty bug:
In case the filter chain can provide more data than what fits into its output buffer,
it converts the maximal amount possible to completely fill its output buffer. However, the
time to play this data might be less than than the time until the next data packet arrives
from the upper layers, especially when using ogg vorbis streams and FEC.

Since the filter chain task has no pre_select function,  the convert function(s) of its filter
nodes only get the chance to convert more data until the next select call returns, which
might already be too late.

This patch fixes the bug by teaching the pre_select function of the writer node group
to  remember whether something was written during the previous call  to wng_post_select().
In this case we force a minimal timeout for select, i.e. the next call to select() will return
immediately and the convert functions of the filter node are called again, hopefully converting
more data for the writer node group.
</content>
</entry>
<entry>
<title>struct writer_node: Store the number of the writer rather than a pointer.</title>
<updated>2009-05-14T06:34:06Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@systemlinux.org</email>
</author>
<published>2009-05-14T06:34:06Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=09bf3971a58fd1044c145b25429c4886966c7d2a'/>
<id>urn:sha1:09bf3971a58fd1044c145b25429c4886966c7d2a</id>
<content type='text'>
This makes it easier to get the name of the writer from the writer_node
struct.
</content>
</entry>
<entry>
<title>Use only a single buffer pointer for filters/receivers.</title>
<updated>2009-05-02T09:46:46Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@systemlinux.org</email>
</author>
<published>2009-05-02T09:46:46Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=0855a5fcdbebabacebee968939cf00bf3161cfaf'/>
<id>urn:sha1:0855a5fcdbebabacebee968939cf00bf3161cfaf</id>
<content type='text'>
This allows filters to change the output buffer size on the fly.
</content>
</entry>
<entry>
<title>write: Get rid of wn-&gt;chunk_bytes and wng-&gt;max_chunk_bytes.</title>
<updated>2009-03-15T16:14:50Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@systemlinux.org</email>
</author>
<published>2009-03-15T16:14:50Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=4213f76d961629c7996c9d8c95171197f963e2f4'/>
<id>urn:sha1:4213f76d961629c7996c9d8c95171197f963e2f4</id>
<content type='text'>
These are not used anyway. Make all writers return 1 on success.
</content>
</entry>
<entry>
<title>Fix a typo in the documentation to struct writer.</title>
<updated>2009-03-12T20:38:07Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@systemlinux.org</email>
</author>
<published>2009-03-12T20:38:07Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=597d812fe8e82c888cf713420aa17d751da40dac'/>
<id>urn:sha1:597d812fe8e82c888cf713420aa17d751da40dac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change year of copyright from 2008 to 2009.</title>
<updated>2009-01-10T00:53:18Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@systemlinux.org</email>
</author>
<published>2009-01-10T00:53:18Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=6bdac07456cb5872f824028912d1049883a9c21f'/>
<id>urn:sha1:6bdac07456cb5872f824028912d1049883a9c21f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve help/man page of para_write.</title>
<updated>2008-12-06T13:37:03Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@systemlinux.org</email>
</author>
<published>2008-12-06T13:37:03Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=2084249288864e17c43570bd9957bd927864b1b7'/>
<id>urn:sha1:2084249288864e17c43570bd9957bd927864b1b7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace MAX, MIN, ABS macros by type-checking variants.</title>
<updated>2008-12-01T15:51:37Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@systemlinux.org</email>
</author>
<published>2008-12-01T15:51:37Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=3062b9da4f71ea236f46efda9a51add1b15cda1a'/>
<id>urn:sha1:3062b9da4f71ea236f46efda9a51add1b15cda1a</id>
<content type='text'>
Taken from the Linux kernel. These macros also evaluate each parameter
only once. Fix up all resulting gcc warnings.</content>
</entry>
<entry>
<title>write.h: Cosmetics.</title>
<updated>2008-11-28T21:04:54Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@systemlinux.org</email>
</author>
<published>2008-11-28T21:04:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=50a7656fd9ba7bb27762aa3daac51ce453722437'/>
<id>urn:sha1:50a7656fd9ba7bb27762aa3daac51ce453722437</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix a bug in para_write.</title>
<updated>2008-07-12T10:40:36Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@systemlinux.org</email>
</author>
<published>2008-07-12T10:40:36Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=4a562d17319e990f75ea3bbf5f3e25bfe0aafba7'/>
<id>urn:sha1:4a562d17319e990f75ea3bbf5f3e25bfe0aafba7</id>
<content type='text'>
With the old code, the command "para_write &lt; /dev/null" would
segfault because the wng_close() is called although the writer
node group was never opened. Fix this bug by introducing a new
field in struct writer_node_group that tracks whether wng_open()
was called.
</content>
</entry>
</feed>
