From 1760433061c0d7e2bb1ac964a1a02ff868ad9b5b Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Mon, 7 Jun 2004 20:47:00 +0000 Subject: remove metadata debugging code git-svn-id: https://svn.musicpd.org/mpd/trunk@1378 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/decode.c | 2 -- src/inputStream_http.c | 2 -- src/outputBuffer.c | 7 ------- 3 files changed, 11 deletions(-) (limited to 'src') diff --git a/src/decode.c b/src/decode.c index 1ed2c00ee..267616f91 100644 --- a/src/decode.c +++ b/src/decode.c @@ -395,7 +395,6 @@ void handleMetadata(OutputBuffer * cb, PlayerControl * pc, int * previous, int meta = cb->metaChunk[cb->begin]; if( meta != *previous ) { if( meta >= 0 && cb->metaChunkSet[meta]) { - printf("METADATA!, copying it.\n"); memcpy(currentChunk, cb->metadataChunks+meta, sizeof(MetadataChunk)); @@ -408,7 +407,6 @@ void handleMetadata(OutputBuffer * cb, PlayerControl * pc, int * previous, if(!(*currentChunkSent) && pc->metadataState == PLAYER_METADATA_STATE_WRITE) { - printf("copy metadata to player\n"); *currentChunkSent = 1; memcpy(&(pc->metadataChunk), currentChunk, sizeof(MetadataChunk)); diff --git a/src/inputStream_http.c b/src/inputStream_http.c index a7bdf295f..1ac5f3bfb 100644 --- a/src/inputStream_http.c +++ b/src/inputStream_http.c @@ -368,7 +368,6 @@ static int getHTTPHello(InputStream * inStream) { } else if(0 == strncmp(cur, "\r\nicy-metaint:", 14)) { data->icyMetaint = atoi(cur+14); - printf("icyMetaint: %i\n", data->icyMetaint); } else if(0 == strncmp(cur, "\r\nicy-name:", 11)) { int incr = 11; @@ -461,7 +460,6 @@ static void parseIcyMetadata(InputStream * inStream, char * metadata, while(s) { if(0 == strncmp(s, "StreamTitle=", 12)) { int cur = 12; - printf("StreamTitle: %s\n", s+cur); if(inStream->metaTitle) free(inStream->metaTitle); if(*(s+cur) == '\'') cur++; if(s[strlen(s)-1] == '\'') { diff --git a/src/outputBuffer.c b/src/outputBuffer.c index 606f231fc..40777db3b 100644 --- a/src/outputBuffer.c +++ b/src/outputBuffer.c @@ -149,8 +149,6 @@ int copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag) { int nextChunk; static MpdTag * last = NULL; - printf("copyMpdTagToOB called\n"); - if(!cb->acceptMetadata || !tag) { sendMetaChunk = 0; if(last) free(last); @@ -158,10 +156,7 @@ int copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag) { return 0; } - if(!last) printf("OH SHIT\n"); - if(last && mpdTagsAreEqual(last, tag)) { - printf("same as last\n"); return 0; } @@ -178,8 +173,6 @@ int copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag) { last = mpdTagDup(tag); - printMpdTag(stdout, last); - copyMpdTagToMetadataChunk(tag, &(cb->metadataChunks[currentMetaChunk])); cb->metaChunkSet[nextChunk] = 1; -- cgit v1.2.3