diff options
Diffstat (limited to '')
-rw-r--r-- | src/outputBuffer.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c index 39d9b66af..bde118ff8 100644 --- a/src/outputBuffer.c +++ b/src/outputBuffer.c @@ -21,6 +21,7 @@ #include "pcm_utils.h" #include "playerData.h" #include "utils.h" +#include "log.h" #include <string.h> @@ -154,10 +155,12 @@ int copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag) { sendMetaChunk = 0; if(last) free(last); last = NULL; + DEBUG("copyMpdTagToOB: !acceptMetadata || !tag\n"); return 0; } if(last && mpdTagsAreEqual(last, tag)) { + DEBUG("copyMpdTagToOB: same as last\n"); return 0; } @@ -167,7 +170,11 @@ int copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag) { nextChunk = currentMetaChunk+1; if(nextChunk >= BUFFERED_METACHUNKS) nextChunk = 0; - if(cb->metaChunkSet[nextChunk]) return -1; + if(cb->metaChunkSet[nextChunk]) { + sendMetaChunk = 0; + DEBUG("copyMpdTagToOB: metachunk in use!\n"); + return -1; + } sendMetaChunk = 1; currentMetaChunk = nextChunk; @@ -178,5 +185,7 @@ int copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag) { cb->metaChunkSet[nextChunk] = 1; + DEBUG("copyMpdTagToOB: copiedTag\n"); + return 0; } |