spelling fix for avuton

git-svn-id: https://svn.musicpd.org/mpd/trunk@1361 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-06-06 21:37:12 +00:00
parent 81720da06d
commit 33f21b9374
3 changed files with 8 additions and 3 deletions

View File

@ -125,12 +125,12 @@ int sendDataToOutputBuffer(OutputBuffer * cb, InputStream * inStream,
return 0; return 0;
} }
void copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag) { int copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag) {
printf("copyMpdTagToOB called\n"); printf("copyMpdTagToOB called\n");
if(!cb->acceptMetadata || !tag) { if(!cb->acceptMetadata || !tag) {
sendMetaChunk = 0; sendMetaChunk = 0;
return; return -1;
} }
sendMetaChunk = 1; sendMetaChunk = 1;
@ -140,4 +140,6 @@ void copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag) {
printMpdTag(stdout, tag); printMpdTag(stdout, tag);
copyMpdTagToMetadataChunk(tag, &(cb->metadataChunks[currentMetaChunk])); copyMpdTagToMetadataChunk(tag, &(cb->metadataChunks[currentMetaChunk]));
return 0;
} }

View File

@ -41,6 +41,7 @@ typedef struct _OutputBuffer {
mpd_sint8 volatile wrap; mpd_sint8 volatile wrap;
AudioFormat audioFormat; AudioFormat audioFormat;
MetadataChunk metadataChunks[BUFFERED_METACHUNKS]; MetadataChunk metadataChunks[BUFFERED_METACHUNKS];
mpd_sint8 metdataChunkSet[BUFFERED_METACHUNKS];
mpd_sint8 * volatile metaChunk; mpd_sint8 * volatile metaChunk;
volatile mpd_sint8 acceptMetadata; volatile mpd_sint8 acceptMetadata;
} OutputBuffer; } OutputBuffer;
@ -57,4 +58,6 @@ int sendDataToOutputBuffer(OutputBuffer * cb, InputStream * inStream,
void copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag); void copyMpdTagToOutputBuffer(OutputBuffer * cb, MpdTag * tag);
void zeroMetadataChunkSets(OutputBuffer * cb, int begin, int end, int wrap);
#endif #endif

View File

@ -533,7 +533,7 @@ int addToPlaylist(FILE * fp, char * url) {
} }
else { else {
commandError(fp, ACK_ERROR_NO_EXIST, commandError(fp, ACK_ERROR_NO_EXIST,
"\"%s\" is not in the music db or is" "\"%s\" is not in the music db or is "
"not a valid url\n", url); "not a valid url\n", url);
return -1; return -1;
} }