Fix mtp device support

This commit is contained in:
Jonas Kvinge
2019-07-19 19:56:37 +02:00
parent e4cefeaa8f
commit ea6cce7068
14 changed files with 201 additions and 70 deletions

View File

@@ -79,6 +79,13 @@ Organise::Organise(TaskManager *task_manager, std::shared_ptr<MusicStorage> dest
}
Organise::~Organise() {
if (thread_) {
thread_->quit();
thread_->deleteLater();
}
}
void Organise::Start() {
if (thread_) return;
@@ -95,6 +102,7 @@ void Organise::Start() {
moveToThread(thread_);
thread_->start();
}
void Organise::ProcessSomeFiles() {

View File

@@ -62,6 +62,7 @@ class Organise : public QObject {
typedef QList<NewSongInfo> NewSongInfoList;
Organise(TaskManager *task_manager, std::shared_ptr<MusicStorage> destination, const OrganiseFormat &format, bool copy, bool overwrite, bool mark_as_listened, bool albumcover, const NewSongInfoList &songs, bool eject_after);
~Organise();
static const int kBatchSize;
#ifdef HAVE_GSTREAMER