diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-06-09 16:58:33 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-06-09 16:58:33 +0000 |
commit | bfaf6cbd9d3c39d466179be9fad0654cc75a4765 (patch) | |
tree | 915d4f130377ce8c2c02772862e1ef3ab2a65705 /src/decode.c | |
parent | d5f7a7745a188375c5accbbd2eb82c2776cc2a6e (diff) | |
download | mpd-bfaf6cbd9d3c39d466179be9fad0654cc75a4765.tar.gz mpd-bfaf6cbd9d3c39d466179be9fad0654cc75a4765.tar.xz mpd-bfaf6cbd9d3c39d466179be9fad0654cc75a4765.zip |
fix some streaming metadata issues
git-svn-id: https://svn.musicpd.org/mpd/trunk@1416 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/decode.c')
-rw-r--r-- | src/decode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/decode.c b/src/decode.c index 88208670d..17dad4659 100644 --- a/src/decode.c +++ b/src/decode.c @@ -393,7 +393,9 @@ void handleMetadata(OutputBuffer * cb, PlayerControl * pc, int * previous, if(cb->begin!=cb->end) { int meta = cb->metaChunk[cb->begin]; if( meta != *previous ) { + DEBUG("player: metadata change\n"); if( meta >= 0 && cb->metaChunkSet[meta]) { + DEBUG("player: new metadata from decoder!\n"); memcpy(currentChunk, cb->metadataChunks+meta, sizeof(MetadataChunk)); @@ -625,6 +627,7 @@ void decode() { cb = &(getPlayerData()->buffer); + clearAllMetaChunkSets(cb); cb->begin = 0; cb->end = 0; pc = &(getPlayerData()->playerControl); @@ -634,7 +637,6 @@ void decode() { dc->seek = 0; dc->stop = 0; dc->start = 1; - clearAllMetaChunkSets(cb); if(decode_pid==NULL || *decode_pid<=0) { if(decoderInit(pc,cb,dc)<0) return; |