]> git.tuebingen.mpg.de Git - paraslash.git/commit
server: Store max chunk size in database.
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 23 Dec 2016 16:18:21 +0000 (17:18 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 25 Mar 2017 10:54:36 +0000 (11:54 +0100)
commit234647bb5139513bdf36c1afec46f5c43ba27adc
tree094a3d9eb2603870246ef91e7548ee132fbc1144
parentfb3cb0d3ae8ef392024c6e9598b2a59bf92f2277
server: Store max chunk size in database.

This number is needed up-front for the initialization of the fec data
structures.  Currently we recompute it from the chunk table each time
the file is opened for streaming.

We can only get rid of the chunk table concept if we tell the VSS by
other means how to obtain this information.

Fortunately there is an unused 4-byte field in the on-disk afhi
structure, which is always zero at the moment. This patch starts to
use this field to store the maximal chunk size.

For backwards compatibility, when the afhi structure is loaded from
disk at stream time, we check if the field is zero and recompute the
max chunk size as before in this case.

Although the maximal chunk size is generally only needed on the
server side, for consistence we expose it though a new status item
along with chunk_tv and friends.
aac_afh.c
afh.h
afh_common.c
aft.c
configure.ac
flac_afh.c
mp3_afh.c
ogg_afh_common.c
wma_afh.c