summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bc5dc7d)
raw | patch | inline | side by side (parent: bc5dc7d)
author | Max Kellermann <max@duempel.org> | |
Sun, 13 Sep 2009 09:05:23 +0000 (11:05 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Sun, 13 Sep 2009 09:05:23 +0000 (11:05 +0200) |
src/screen_browser.c | patch | blob | history |
diff --git a/src/screen_browser.c b/src/screen_browser.c
index 13bad9bf5dc57951cc3882df923a8c9995bd764e..7afc865333d30a35a24ccc553745b7ff6246b07d 100644 (file)
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
}
static bool
-load_playlist(mpdclient_t *c, filelist_entry_t *entry)
+load_playlist(mpdclient_t *c, const mpd_PlaylistFile *plf)
{
- mpd_InfoEntity *entity = entry->entity;
- mpd_PlaylistFile *plf = entity->info.playlistFile;
char *filename = utf8_to_locale(plf->path);
if (mpdclient_cmd_load_playlist(c, plf->path) == 0)
if (entity == NULL || entity->type == MPD_INFO_ENTITY_TYPE_DIRECTORY)
return browser_change_directory(browser, c, entry, NULL);
else if (entity->type == MPD_INFO_ENTITY_TYPE_PLAYLISTFILE)
- return load_playlist(c, entry);
+ return load_playlist(c, entity->info.playlistFile);
else if (entity->type == MPD_INFO_ENTITY_TYPE_SONG)
return enqueue_and_play(c, entry);
return false;
assert(entry->entity != NULL);
if (entry->entity->type == MPD_INFO_ENTITY_TYPE_PLAYLISTFILE)
- return load_playlist(c, entry);
+ return load_playlist(c, entry->entity->info.playlistFile);
if (entry->entity->type == MPD_INFO_ENTITY_TYPE_DIRECTORY) {
mpd_Directory *dir = entry->entity->info.directory;