Read/write tags in an external app - as per Clementine and Amarok. Isolates Cantata from TagLib crashes.

This commit is contained in:
craig.p.drummond
2013-10-22 18:22:41 +00:00
committed by craig.p.drummond
parent 5860e1e251
commit 5343b1273a
30 changed files with 864 additions and 107 deletions

View File

@@ -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