Remove the CanDecode check - it's slow, and overidden by the taglib check anyway.
This commit is contained in:
parent
d54c8cf2f9
commit
ecda1787c8
@ -28,7 +28,6 @@
|
||||
#include <QTimerEvent>
|
||||
#include <QList>
|
||||
#include <QStringList>
|
||||
#include <QMutex>
|
||||
|
||||
#include <gst/gst.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
@ -131,8 +130,6 @@ class GstEngine : public Engine::Base {
|
||||
float current_scope_[kScopeSize];
|
||||
int current_sample_;
|
||||
|
||||
QMutex scope_mutex_;
|
||||
|
||||
bool equalizer_enabled_;
|
||||
int equalizer_preamp_;
|
||||
QList<int> equalizer_gains_;
|
||||
|
@ -180,7 +180,7 @@ void LibraryWatcher::ScanSubdirectory(
|
||||
|
||||
if (sValidImages.contains(ext_part))
|
||||
album_art[dir_part] << child;
|
||||
else if (engine_->CanDecode(QUrl::fromLocalFile(child)))
|
||||
else
|
||||
files_on_disk << child;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user