db/DatabaseSong: make the Storage optional
Some database plugins don't use a Storage (e.g. UPnP), and with this plugin, DatabaseDetachSong() can crash.
This commit is contained in:
@@ -109,7 +109,7 @@ static const char *uri2 = "foo/bar.ogg";
|
||||
|
||||
DetachedSong
|
||||
DatabaseDetachSong(gcc_unused const Database &db,
|
||||
gcc_unused const Storage &_storage,
|
||||
gcc_unused const Storage *_storage,
|
||||
const char *uri)
|
||||
{
|
||||
if (strcmp(uri, uri2) == 0)
|
||||
|
Reference in New Issue
Block a user