Fix playback of local files by inbuilt HTTP server.
BUG 554
This commit is contained in:
committed by
craig.p.drummond
parent
997753359f
commit
6a66fbd2c6
@@ -67,7 +67,6 @@ HttpServer::HttpServer()
|
||||
, 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)));
|
||||
connect(MPDConnection::self(), SIGNAL(removedIds(QSet<qint32>)), this, SLOT(removedIds(QSet<qint32>)));
|
||||
@@ -92,7 +91,7 @@ bool HttpServer::start()
|
||||
thread=new Thread("HttpServer");
|
||||
}
|
||||
socket=new HttpSocket(Settings::self()->httpInterface(), prevPort);
|
||||
socket->mpdAddress(mpdAddr);
|
||||
socket->mpdAddress(MPDConnection::self()->ipAddress());
|
||||
connect(this, SIGNAL(terminateSocket()), socket, SLOT(terminate()), Qt::QueuedConnection);
|
||||
if (socket->serverPort()!=prevPort) {
|
||||
Settings::self()->saveHttpAllocatedPort(socket->serverPort());
|
||||
@@ -315,11 +314,6 @@ void HttpServer::startCloseTimer()
|
||||
closeTimer->start(1000);
|
||||
}
|
||||
|
||||
void HttpServer::mpdAddress(const QString &a)
|
||||
{
|
||||
mpdAddr=a;
|
||||
}
|
||||
|
||||
void HttpServer::cantataStreams(const QStringList &files)
|
||||
{
|
||||
DBUG << files;
|
||||
|
||||
Reference in New Issue
Block a user