potential bugfixes for handling metadata in player/decoder
git-svn-id: https://svn.musicpd.org/mpd/trunk@1369 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
+10
-5
@@ -38,15 +38,20 @@ void clearAllMetaChunkSets(OutputBuffer * cb) {
|
||||
}
|
||||
|
||||
void clearOutputBuffer(OutputBuffer * cb) {
|
||||
int currentSet = 1;
|
||||
|
||||
currentChunk = -1;
|
||||
cb->end = cb->begin;
|
||||
cb->wrap = 0;
|
||||
|
||||
if(cb->acceptMetadata) {
|
||||
clearAllMetaChunkSets(cb);
|
||||
if(sendMetaChunk == 0 && currentMetaChunk >= 0) {
|
||||
cb->metaChunkSet[currentChunk] = 1;
|
||||
}
|
||||
/* be sure to reset metaChunkSets cause we are skipping over audio
|
||||
* audio chunks, and thus skipping over metadata */
|
||||
if(sendMetaChunk == 0 && currentMetaChunk >= 0) {
|
||||
currentSet = cb->metaChunkSet[currentChunk];
|
||||
}
|
||||
clearAllMetaChunkSets(cb);
|
||||
if(sendMetaChunk == 0 && currentMetaChunk >= 0) {
|
||||
cb->metaChunkSet[currentChunk] = currentSet;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user