]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Never start playback at an empty chunk.
authorAndre Noll <maan@systemlinux.org>
Sun, 11 May 2014 19:21:15 +0000 (21:21 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 1 Jul 2014 17:37:46 +0000 (19:37 +0200)
The chunk table of ogg/* audio files often contains "empty" chunks
which correspond to time slices for which the virtual streaming system
does not need to send any data. When playback is started at an empty
chunk, an unnecessary delay results.

To overcome this issue, this commit introduces a new public helper
afh_get_start_chunk() which looks for the first non-empty chunk before
the given chunk number.

The new function is called from afh_recv.c and from vss.c so that
both para_play and para_server now avoid to start streaming at an
empty chunk.


No differences found