diff options
-rw-r--r-- | tools/playlist.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/playlist.c b/tools/playlist.c index cb9cbeba..47954d3f 100644 --- a/tools/playlist.c +++ b/tools/playlist.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: playlist.c,v 1.21 2008-11-16 15:02:45 rofafor Exp $ + * $Id: playlist.c,v 1.22 2009-06-01 16:21:23 phintuka Exp $ * */ @@ -174,11 +174,11 @@ class cID3Scanner : public cThread while(md_list) { if ((key=EXTRACTOR_getKeywordTypeAsString(md_list->keywordType))) { if (!strcasecmp(key,"title")) - Item->Title = strdup(md_list->keyword); + Item->Title = md_list->keyword; else if (!strcasecmp(key,"artist")) - Item->Artist = strdup(md_list->keyword); + Item->Artist = md_list->keyword; else if (!strcasecmp(key,"album")) - Item->Album = strdup(md_list->keyword); + Item->Album = md_list->keyword; else if (!strcasecmp(key,"track number")) Item->Tracknumber = cString::sprintf("%s%s", strlen(md_list->keyword) == 1 ? "0" : "", md_list->keyword); md_list=md_list->next; @@ -838,7 +838,7 @@ int cPlaylist::ReadPlaylist(const char *file) static cString LastDir(cString& path) { - cString tmp = strdup(path); + cString tmp = path; char *pt = strrchr(tmp, '/'); if(pt && pt > *tmp) { *pt = 0; |