From: Andre Noll Date: Sun, 11 May 2014 19:21:15 +0000 (+0200) Subject: Never start playback at an empty chunk. X-Git-Tag: v0.5.3~5^2 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=9c1aa53f0cda586aa13a022452d16a2704055578;hp=9c1aa53f0cda586aa13a022452d16a2704055578;p=paraslash.git 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. ---