aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-10-25 20:09:03 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-10-25 20:09:03 +0000
commitce10ba4b119faac3eb7c5d1251b1a875d28056c1 (patch)
tree0770735cd27e4ac6ca137656c341c6ca346e45ab /src/player.c
parentb6bcc65a454b711b586ca221323f1efba35e6dab (diff)
downloadmpd-ce10ba4b119faac3eb7c5d1251b1a875d28056c1.tar.gz
mpd-ce10ba4b119faac3eb7c5d1251b1a875d28056c1.tar.xz
mpd-ce10ba4b119faac3eb7c5d1251b1a875d28056c1.zip
fix a big time bug in metadataChunk (off by one in an array assignment)
also, now we have metadata in our streams git-svn-id: https://svn.musicpd.org/mpd/trunk@2337 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c
index 8c9d0df45..f38b9384c 100644
--- a/src/player.c
+++ b/src/player.c
@@ -187,6 +187,8 @@ int playerPlay(FILE * fp, Song * song) {
if(song->tag) pc->fileTime = song->tag->time;
else pc->fileTime = 0;
+ copyMpdTagToMetadataChunk(song->tag, &(pc->fileMetadataChunk));
+
strncpy(pc->utf8url, song->utf8url, MAXPATHLEN);
pc->utf8url[MAXPATHLEN] = '\0';
@@ -338,6 +340,8 @@ int queueSong(Song * song) {
if(song->tag) pc->fileTime = song->tag->time;
else pc->fileTime = 0;
+ copyMpdTagToMetadataChunk(song->tag, &(pc->fileMetadataChunk));
+
pc->queueState = PLAYER_QUEUE_FULL;
return 0;
}
@@ -390,6 +394,8 @@ int playerSeek(FILE * fp, Song * song, float time) {
if(song->tag) pc->fileTime = song->tag->time;
else pc->fileTime = 0;
+ copyMpdTagToMetadataChunk(song->tag, &(pc->fileMetadataChunk));
+
strncpy(pc->utf8url, song->utf8url, MAXPATHLEN);
pc->utf8url[MAXPATHLEN] = '\0';
}