1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 19:45:31 +01:00

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

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 // 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 // Windows, so check for that here. This is definitely the wrong place for
// this "fix"... // this "fix"...
if (url.scheme() == "file" && !QFile::exists(url.path())) if (url.scheme() == "file" && !QFile::exists(url.toLocalFile()))
return false; return false;
const bool crossfade = current_pipeline_ && const bool crossfade = current_pipeline_ &&