Fix playback of AudioCDs

This commit is contained in:
Craig Drummond
2016-03-17 23:11:57 +00:00
committed by Craig Drummond
parent 813e6b7cd1
commit 658788645b
6 changed files with 14 additions and 6 deletions

View File

@@ -305,8 +305,7 @@ Song HttpServer::decodeUrl(const QUrl &url) const
s.file=fixWindowsPath(s.file);
#endif
#if defined CDDB_FOUND || defined MUSICBRAINZ5_FOUND
if (s.file.startsWith(QChar('/')+Song::constCddaProtocol)) {
s.file=s.file.mid(1);
if (s.file.startsWith(Song::constCddaProtocol)) {
s.type=Song::Cdda;
}
#endif
@@ -367,6 +366,7 @@ void HttpServer::removedIds(const QSet<qint32> &ids)
void HttpServer::ifaceIp(const QString &ip)
{
DBUG << "MPD interface ip" << ip;
if (ip.isEmpty()) {
return;
}