]> git.tuebingen.mpg.de Git - paraslash.git/commit
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)
commit9c1aa53f0cda586aa13a022452d16a2704055578
tree922f0832c39c9f2342e19f0a4ce971b8221d10a4
parentc341594d9788fd7e52a76f6430d91fce41cbf0ec
Never start playback at an empty chunk.

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.
afh.h
afh_common.c
afh_recv.c
vss.c