db/Interface: GetSong() throws exception on error
This commit is contained in:
@@ -82,8 +82,7 @@ public:
|
||||
|
||||
virtual void Open() override;
|
||||
virtual void Close() override;
|
||||
virtual const LightSong *GetSong(const char *uri_utf8,
|
||||
Error &error) const override;
|
||||
virtual const LightSong *GetSong(const char *uri_utf8) const override;
|
||||
void ReturnSong(const LightSong *song) const override;
|
||||
|
||||
virtual bool Visit(const DatabaseSelection &selection,
|
||||
@@ -202,7 +201,7 @@ UpnpDatabase::ReturnSong(const LightSong *_song) const
|
||||
// Get song info by path. We can receive either the id path, or the titles
|
||||
// one
|
||||
const LightSong *
|
||||
UpnpDatabase::GetSong(const char *uri, gcc_unused Error &error) const
|
||||
UpnpDatabase::GetSong(const char *uri) const
|
||||
{
|
||||
auto vpath = stringToTokens(uri, "/", true);
|
||||
if (vpath.size() < 2)
|
||||
|
Reference in New Issue
Block a user