mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05: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 queryTypeBrowseAlbums:
|
||||||
case queryTypeBrowseGenres:
|
case queryTypeBrowseGenres:
|
||||||
case queryTypeBrowseComposers:
|
case queryTypeBrowseComposers:
|
||||||
return DMAPLEN(valarray[0]);
|
return valarray[0] ? (8 + (int) strlen(valarray[0])) : 0;
|
||||||
case queryTypePlaylists:
|
case queryTypePlaylists:
|
||||||
size = 8; /* mlit */
|
size = 8; /* mlit */
|
||||||
size += 12; /* mimc - you get it whether you want it or not */
|
size += 12; /* mimc - you get it whether you want it or not */
|
||||||
|
Loading…
Reference in New Issue
Block a user