Improve handling of song source

This commit is contained in:
Jonas Kvinge
2019-04-08 23:00:07 +02:00
parent 9be161d165
commit 77903a5ecd
13 changed files with 67 additions and 61 deletions

View File

@@ -213,7 +213,8 @@ SongLoader::Result SongLoader::LoadLocal(const QString &filename) {
if (song.is_valid()) {
songs_ << song;
}
} while (query.Next());
}
while (query.Next());
return Success;
}
@@ -337,7 +338,7 @@ void SongLoader::LoadLocalDirectory(const QString &filename) {
}
void SongLoader::AddAsRawStream() {
Song song;
Song song(Song::Source_Stream);
song.set_valid(true);
song.set_filetype(Song::FileType_Stream);
song.set_url(url_);