If connected to MPD via a UNIX-domain socket, then send non-MPD files as file:/// URLs to MPD - i.e. dont use internal HTTP server. To foce usage of HTTP server - set alwaysUseHttp to true in Cantata's config file.

BUG: 373
This commit is contained in:
craig.p.drummond
2014-01-02 19:06:13 +00:00
committed by craig.p.drummond
parent 3a07ab4e6d
commit 2273b27f15
9 changed files with 40 additions and 15 deletions

View File

@@ -79,6 +79,7 @@ HttpServer::HttpServer()
, socket(0)
, closeTimer(0)
{
force=Settings::self()->alwaysUseHttp();
connect(MPDConnection::self(), SIGNAL(socketAddress(QString)), this, SLOT(mpdAddress(QString)));
connect(MPDConnection::self(), SIGNAL(cantataStreams(QList<Song>,bool)), this, SLOT(cantataStreams(QList<Song>,bool)));
connect(MPDConnection::self(), SIGNAL(cantataStreams(QStringList)), this, SLOT(cantataStreams(QStringList)));