little tidying up that will be deleted anyway
git-svn-id: https://svn.musicpd.org/mpd/trunk@1260 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
852c21b594
commit
2c1f5365eb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user