Charset conversion support.
[platform/upstream/lightmediascanner.git] / src / plugins / m3u / m3u.c
index f3be26f..d5c907e 100644 (file)
@@ -129,6 +129,7 @@ _parse(struct plugin *plugin, struct lms_context *ctxt, const struct lms_file_in
     info.title.str = malloc((info.title.len + 1) * sizeof(char));
     memcpy(info.title.str, finfo->path + finfo->base, info.title.len);
     info.title.str[info.title.len] = '\0';
+    lms_charset_conv(ctxt->cs_conv, &info.title.str, &info.title.len);
 
     info.id = finfo->id;
     r = lms_db_playlist_add(plugin->playlist_db, &info);