Read/write tags in an external app - as per Clementine and Amarok. Isolates Cantata from TagLib crashes.
This commit is contained in:
committed by
craig.p.drummond
parent
5860e1e251
commit
5343b1273a
@@ -24,7 +24,7 @@
|
||||
#include "httpserver.h"
|
||||
#include "httpsocket.h"
|
||||
#ifdef TAGLIB_FOUND
|
||||
#include "tags.h"
|
||||
#include "tagclient.h"
|
||||
#endif
|
||||
#include "settings.h"
|
||||
#include "thread.h"
|
||||
@@ -201,13 +201,13 @@ QByteArray HttpServer::encodeUrl(const QString &file) const
|
||||
}
|
||||
}
|
||||
#ifdef TAGLIB_FOUND
|
||||
s=Tags::read(f);
|
||||
s=TagClient::self()->read(f);
|
||||
#endif
|
||||
s.file=f;
|
||||
#else
|
||||
DBUG << "file" << file;
|
||||
#ifdef TAGLIB_FOUND
|
||||
s=Tags::read(file);
|
||||
s=TagClient::self()->read(file);
|
||||
#endif
|
||||
s.file=file;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user