]> git.tuebingen.mpg.de Git - paraslash.git/commit
aac_afh: Don't create chunk tables any more.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 24 Dec 2016 15:02:36 +0000 (16:02 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 25 Mar 2017 10:54:36 +0000 (11:54 +0100)
commit6a0cd05bad7cb1fb166c54aaa8f04927e40baa68
tree8bfc99e376a55beab35d62ba820fb58abbfd31bf
parentb6b571e6c6fb52207b11fc7833b272ec8cfa28bf
aac_afh: Don't create chunk tables any more.

A previous commit activated dynamic chunks for the aac audio format
handler, so the virtual streaming system no longer consults the chunk
table stored in the audio file table of the osl database.

However, the code to open or add an audio file still assumes that
there is a chunk table and bails out if it can't find it. This patch
changes aft.c to do without a chunk table if the audio format handler
supports dynamic chunks. The afh_supports_dynamic_chunks() helper
needs to be made public because of this.

With chunk tables being optional, the ->get_file_info method of the
audio format handler can safely set ->chunk_table to NULL. It still
needs to compute the maximum chunk size though.
aac_afh.c
afh.h
afh_common.c
aft.c