Stop using deprecated TagLib method `length`

This commit is contained in:
Deluan 2024-02-17 11:38:36 -05:00 committed by Deluan Quintão
parent 6f4c55dbde
commit effd588406
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ int taglib_read(const FILENAME_CHAR_T *filename, unsigned long id) {
// Add audio properties to the tags
const TagLib::AudioProperties *props(f.audioProperties());
go_map_put_int(id, (char *)"duration", props->length());
go_map_put_int(id, (char *)"duration", props->lengthInSeconds());
go_map_put_int(id, (char *)"lengthinmilliseconds", props->lengthInMilliseconds());
go_map_put_int(id, (char *)"bitrate", props->bitrate());
go_map_put_int(id, (char *)"channels", props->channels());