diff options
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; |