1) cdtext objects are no longer associated with a track but with the disc.
2) - cdio_get_cdtext no longer takes track as an argument - cdtext_get, cdtext_get_const, cdtext_set require track argument 3) Language, Genre, Genre Code and Encoding Fields are now properly parsed and stored in the cdtext object 4) Added public function cdio_get_cdtext_raw to extract the binary CD-Text 5) Added CDTEXTFILE keyword logic in cue sheet parser. Parses binary/raw CD-Text files 6) Added cdtext_genre2str to convert genre code 7) altered the example programs, test drivers, cdda-player and cd-info to work with these changes 8) Added test case 9) A few smaller changes A disc either holds CD-Text for all the tracks or does not hold any. Therefore a CD-Text object for the whole disc seems more natural to me. It also enables us to store global fields, like genre, encoding, language. Patch was tested on GNU/Linux 32 bit running Gentoo.
This commit is contained in:
@@ -1111,6 +1111,7 @@ cdio_open_am_freebsd (const char *psz_orig_source_name,
|
||||
.get_arg = get_arg_freebsd,
|
||||
.get_blocksize = get_blocksize_mmc,
|
||||
.get_cdtext = get_cdtext_generic,
|
||||
.get_cdtext_raw = read_cdtext_generic,
|
||||
.get_default_device = cdio_get_default_device_freebsd,
|
||||
.get_devices = cdio_get_devices_freebsd,
|
||||
.get_disc_last_lsn = get_disc_last_lsn_freebsd,
|
||||
@@ -1145,7 +1146,6 @@ cdio_open_am_freebsd (const char *psz_orig_source_name,
|
||||
_data->gen.init = false;
|
||||
_data->gen.fd = -1;
|
||||
_data->gen.toc_init = false;
|
||||
_data->gen.b_cdtext_init = false;
|
||||
_data->gen.b_cdtext_error = false;
|
||||
|
||||
if (NULL == psz_orig_source_name) {
|
||||
|
||||
Reference in New Issue
Block a user