Commit 71c55f65 authored by Arnold Dumas's avatar Arnold Dumas

Use MediaSource(const QUrl& url) instead of deprecated MediaSource(const QString& fileName)

REVIEW: 115718
parent be95493e
......@@ -458,7 +458,7 @@ void PlayerManager::slotFinished()
}
else {
emit signalItemChanged(m_file);
m_media[m_curOutputPath]->setCurrentSource(m_file.absFilePath());
m_media[m_curOutputPath]->setCurrentSource(QUrl::fromLocalFile(m_file.absFilePath()));
m_media[m_curOutputPath]->play();
}
}
......@@ -667,7 +667,7 @@ void PlayerManager::crossfadeToFile(const FileHandle &newFile)
m_fader[nextOutputPath]->setVolume(0.0f);
emit signalItemChanged(newFile);
m_media[nextOutputPath]->setCurrentSource(newFile.absFilePath());
m_media[nextOutputPath]->setCurrentSource(QUrl::fromLocalFile(newFile.absFilePath()));
m_media[nextOutputPath]->play();
m_fader[m_curOutputPath]->setVolume(1.0f);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment