Drop metadata updates from HTTP for now (input HTTP, and shout)
It is way more complicated than it should be; and locking it for thread-safety is too difficult. [merged r7183 from branches/ew] git-svn-id: https://svn.musicpd.org/mpd/trunk@7241 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -893,7 +893,6 @@ static int mp3Read(mp3DecodeData * data, OutputBuffer * cb, DecoderControl * dc,
|
||||
data->inStream->metaTitle);
|
||||
free(data->inStream->metaTitle);
|
||||
data->inStream->metaTitle = NULL;
|
||||
copyMpdTagToOutputBuffer(cb, tag);
|
||||
freeMpdTag(tag);
|
||||
}
|
||||
|
||||
@@ -1048,21 +1047,18 @@ static int mp3_decode(OutputBuffer * cb, DecoderControl * dc,
|
||||
if (inStream->metaName) {
|
||||
addItemToMpdTag(tag, TAG_ITEM_NAME, inStream->metaName);
|
||||
}
|
||||
copyMpdTagToOutputBuffer(cb, tag);
|
||||
freeMpdTag(tag);
|
||||
} else if (tag) {
|
||||
if (inStream->metaName) {
|
||||
clearItemsFromMpdTag(tag, TAG_ITEM_NAME);
|
||||
addItemToMpdTag(tag, TAG_ITEM_NAME, inStream->metaName);
|
||||
}
|
||||
copyMpdTagToOutputBuffer(cb, tag);
|
||||
freeMpdTag(tag);
|
||||
} else if (inStream->metaName) {
|
||||
tag = newMpdTag();
|
||||
if (inStream->metaName) {
|
||||
addItemToMpdTag(tag, TAG_ITEM_NAME, inStream->metaName);
|
||||
}
|
||||
copyMpdTagToOutputBuffer(cb, tag);
|
||||
freeMpdTag(tag);
|
||||
}
|
||||
|
||||
|
@@ -213,8 +213,6 @@ static void putOggCommentsIntoOutputBuffer(OutputBuffer * cb, char *streamName,
|
||||
addItemToMpdTag(tag, TAG_ITEM_NAME, streamName);
|
||||
}
|
||||
|
||||
copyMpdTagToOutputBuffer(cb, tag);
|
||||
|
||||
freeMpdTag(tag);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user