Commit 2c1f5365 authored by Warren Dukes's avatar Warren Dukes

little tidying up that will be deleted anyway

git-svn-id: https://svn.musicpd.org/mpd/trunk@1260 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 852c21b5
......@@ -465,10 +465,9 @@ Song * playerCurrentDecodeSong() {
DecoderControl * dc = &(getPlayerData()->decoderControl);
if(dc->metadataSet && (!song || strcmp(song->utf8url, dc->utf8url))) {
if(!song) {
song = newNullSong();
song->tag = newMpdTag();
}
if(song) freeJustSong(song);
song = newNullSong();
song->tag = newMpdTag();
if(song->utf8url) free(song->utf8url);
song->utf8url = strdup(dc->utf8url);
if(dc->title >= 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment