Fix mtp device support
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user