mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
Fix browse problem with empty content
This commit is contained in:
parent
7fe019693b
commit
0b7968d468
@ -1250,7 +1250,7 @@ int db_sql_get_size(DBQUERYINFO *pinfo, SQL_ROW valarray) {
|
||||
case queryTypeBrowseAlbums:
|
||||
case queryTypeBrowseGenres:
|
||||
case queryTypeBrowseComposers:
|
||||
return DMAPLEN(valarray[0]);
|
||||
return valarray[0] ? (8 + (int) strlen(valarray[0])) : 0;
|
||||
case queryTypePlaylists:
|
||||
size = 8; /* mlit */
|
||||
size += 12; /* mimc - you get it whether you want it or not */
|
||||
|
Loading…
Reference in New Issue
Block a user