Stop using deprecated TagLib method length

This commit is contained in:
Deluan 2024-02-17 11:38:36 -05:00 committed by Joe Stump
parent 26a53c717e
commit 116f5d02ff
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

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());