db: add missing field "virtual_path" in struct db_playlist_info (fixes

segfault when loading playlists)
This commit is contained in:
chme 2015-02-23 20:49:53 +01:00
parent 6f7d9f5b44
commit 795926605d
2 changed files with 2 additions and 1 deletions

View File

@ -239,7 +239,7 @@ static const ssize_t dbpli_cols_map[] =
dbpli_offsetof(path), dbpli_offsetof(path),
dbpli_offsetof(index), dbpli_offsetof(index),
dbpli_offsetof(special_id), dbpli_offsetof(special_id),
dbmfi_offsetof(virtual_path), dbpli_offsetof(virtual_path),
/* items is computed on the fly */ /* items is computed on the fly */
}; };

View File

@ -194,6 +194,7 @@ struct db_playlist_info {
char *path; char *path;
char *index; char *index;
char *special_id; char *special_id;
char *virtual_path;
}; };
#define dbpli_offsetof(field) offsetof(struct db_playlist_info, field) #define dbpli_offsetof(field) offsetof(struct db_playlist_info, field)