]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
http/dccp: Do not send the audio file header twice.
authorAndre Noll <maan@systemlinux.org>
Thu, 12 Nov 2009 23:39:22 +0000 (00:39 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 12 Nov 2009 23:39:22 +0000 (00:39 +0100)
If the http/dccp client connects before stream start and the stream
starts at the beginning of the audio file (the common case), we do not
need to send the audio file header as it is contained in chunk zero.

However, the current code fails to set sender_client->sent_header to
a non-zero value in this case. This causes the header to be sent twice.

The ogg vorbis decoder is quite forgiving in that respect, which is
probably why this bug went unnoticed for so long. This patch gets
it right.


No differences found