mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 22:55:56 -05:00
db: add missing field "virtual_path" in struct db_playlist_info (fixes
segfault when loading playlists)
This commit is contained in:
parent
6f7d9f5b44
commit
795926605d
2
src/db.c
2
src/db.c
@ -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 */
|
||||||
};
|
};
|
||||||
|
1
src/db.h
1
src/db.h
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user