Make local file playback work on Windows again

This commit is contained in:
David Sansome 2010-05-01 14:01:01 +00:00
parent 5a7437ddd6
commit 6f7dbf3286
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ bool GstEngine::Load(const QUrl& url, Engine::TrackChangeType change) {
// Clementine just crashes when asked to load a file that doesn't exist on
// Windows, so check for that here. This is definitely the wrong place for
// this "fix"...
if (url.scheme() == "file" && !QFile::exists(url.path()))
if (url.scheme() == "file" && !QFile::exists(url.toLocalFile()))
return false;
const bool crossfade = current_pipeline_ &&