summaryrefslogtreecommitdiff
path: root/plugins/gtkui/fileman.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-03-26 22:51:51 +0100
committerGravatar waker <wakeroid@gmail.com>2011-03-26 22:51:51 +0100
commit2c0f383ad74af2790ea5e470ded4f5e3c08ce772 (patch)
tree678484a17faad1cf139ccdabb84c2c8e4fcad63b /plugins/gtkui/fileman.c
parent49f5aa7515d026fe581c0d890c33c02818e7bdd9 (diff)
initial support for playlist metadata
allows to add any set of properties to every playlist api is based on playItem metadata api
Diffstat (limited to 'plugins/gtkui/fileman.c')
-rw-r--r--plugins/gtkui/fileman.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/gtkui/fileman.c b/plugins/gtkui/fileman.c
index d4ffb518..d33764c0 100644
--- a/plugins/gtkui/fileman.c
+++ b/plugins/gtkui/fileman.c
@@ -28,15 +28,16 @@ gtkpl_add_dirs (GSList *lst) {
&& deadbeef->conf_get_int ("gtkui.name_playlist_from_folder", 0)) {
int plt = deadbeef->plt_get_curr ();
if (plt != -1) {
+ void *p = deadbeef->plt_get_handle (plt);
char t[1000];
- if (!deadbeef->plt_get_title (plt, t, sizeof (t))) {
+ if (!deadbeef->plt_get_title (p, t, sizeof (t))) {
char *def = _("New Playlist");
if (!strncmp (t, def, strlen (def))) {
const char *folder = strrchr ((char*)lst->data, '/');
if (!folder) {
folder = lst->data;
}
- deadbeef->plt_set_title (plt, folder+1);
+ deadbeef->plt_set_title (p, folder+1);
}
}
}