decoder/sidplay: read the "date" tag

This commit is contained in:
Max Kellermann 2016-07-29 17:47:08 +02:00
parent d790d3ba3c
commit 9bfb844cfa
2 changed files with 7 additions and 0 deletions

1
NEWS
View File

@ -5,6 +5,7 @@ ver 0.19.18 (not yet released)
- ffmpeg: support FFmpeg 3.1
- sidplay: detect libsidplay2 with pkg-config
- sidplay: log detailed error message
- sidplay: read the "date" tag
* output
- shout: recognize setting "encoder" instead of "encoding"
* require gcc 4.7 or newer

View File

@ -327,6 +327,12 @@ sidplay_scan_file(Path path_fs,
tag_handler_invoke_tag(handler, handler_ctx, TAG_ARTIST,
artist);
/* date */
const char *date = GetInfoString(info, 2);
if (date != nullptr)
tag_handler_invoke_tag(handler, handler_ctx, TAG_DATE,
date);
/* track */
char track[16];
sprintf(track, "%d", song_num);