comparison Plugins/Container/xspf/xspf.c @ 1589:ebc170f08767 trunk

[svn] - file_path should not contain file name.
author yaz
date Wed, 23 Aug 2006 23:09:05 -0700
parents 15d92c51bde6
children 99962a017e0b
comparison
equal deleted inserted replaced
1588:15d92c51bde6 1589:ebc170f08767
62 locale_uri = g_convert(str, -1, "ISO-8859-1", "UTF-8", NULL, NULL, NULL); 62 locale_uri = g_convert(str, -1, "ISO-8859-1", "UTF-8", NULL, NULL, NULL);
63 } 63 }
64 xmlFree(str); 64 xmlFree(str);
65 if(locale_uri){ 65 if(locale_uri){
66 tuple->file_name = g_path_get_basename(locale_uri); 66 tuple->file_name = g_path_get_basename(locale_uri);
67 tuple->file_path = g_strdup(locale_uri); 67 tuple->file_path = g_path_get_dirname(locale_uri);
68 } 68 }
69 } 69 }
70 else if(nptr->type == XML_ELEMENT_NODE && !strcmp(nptr->name, "creator")){ 70 else if(nptr->type == XML_ELEMENT_NODE && !strcmp(nptr->name, "creator")){
71 tuple->performer = (gchar *)xmlNodeGetContent(nptr); 71 tuple->performer = (gchar *)xmlNodeGetContent(nptr);
72 } 72 }