diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-31 14:30:54 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-31 14:30:54 +0000 |
commit | 2c1f5365ebbd7ffd9ffa660a39ebc052ef96e4d2 (patch) | |
tree | 3424d95756467d03c8d2d7d3fcacae556628eed1 /src | |
parent | 852c21b594d987e7cd165b0dcbc16c6d51416a3f (diff) | |
download | mpd-2c1f5365ebbd7ffd9ffa660a39ebc052ef96e4d2.tar.gz mpd-2c1f5365ebbd7ffd9ffa660a39ebc052ef96e4d2.tar.xz mpd-2c1f5365ebbd7ffd9ffa660a39ebc052ef96e4d2.zip |
little tidying up that will be deleted anyway
git-svn-id: https://svn.musicpd.org/mpd/trunk@1260 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r-- | src/player.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/player.c b/src/player.c index dac7b59a4..e0d8ee93f 100644 --- a/src/player.c +++ b/src/player.c @@ -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) { |