Mercurial > audlegacy-plugins
diff src/xspf/xspf.c @ 1681:3f9c00a2870f
xspf: use playlist_set_current_name when loading title
author | Kieran Clancy <clancy.kieran+audacious@gmail.com> |
---|---|
date | Mon, 10 Sep 2007 15:10:19 +0930 |
parents | ae9b0327b620 |
children | c4e63a2d85aa |
line wrap: on
line diff
--- a/src/xspf/xspf.c Mon Sep 10 09:42:48 2007 +0900 +++ b/src/xspf/xspf.c Mon Sep 10 15:10:19 2007 +0930 @@ -302,9 +302,7 @@ xmlChar *title = xmlNodeGetContent(nptr2); if (title && *title) { - gchar *old = plist->title; - plist->title = g_strdup((gchar*)title); - g_free(old); + playlist_set_current_name(plist, (gchar*)title); } xmlFree(title); } else