Charset conversion support.
[platform/upstream/lightmediascanner.git] / src / plugins / pls / pls.c
index 8e96ad0..08533ab 100644 (file)
@@ -311,6 +311,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);