aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c
index 7a6442991..9427ddf21 100644
--- a/src/player.c
+++ b/src/player.c
@@ -56,6 +56,8 @@ static void resetPlayerMetadata() {
if(pc->metadataState == PLAYER_METADATA_STATE_READ) {
pc->metadataState = PLAYER_METADATA_STATE_WRITE;
pc->title = -1;
+ pc->artist = -1;
+ pc->album = -1;
}
}
@@ -489,6 +491,12 @@ Song * playerCurrentDecodeSong() {
if(pc->title >= 0) {
song->tag->title = strdup(pc->title + pc->metadata);
}
+ if(pc->artist >= 0) {
+ song->tag->artist = strdup(pc->artist + pc->metadata);
+ }
+ if(pc->album >= 0) {
+ song->tag->album = strdup(pc->album + pc->metadata);
+ }
validateUtf8Tag(song->tag);
resetPlayerMetadata();
return song;