Add M4A to files pattern
[someplayer] / src / mediascanner.cpp
index 6a6390c..7270745 100644 (file)
@@ -27,7 +27,7 @@ using namespace SomePlayer::Storage;
 MediaScanner::MediaScanner(QObject *parent) :
                QThread(parent), _stopped(false), _initialized(false)
 {
-       REGISTERED_FILE_EXTENSIONS << "mp3" << "flac" << "wma" << "aac" << "ogg";
+       REGISTERED_FILE_EXTENSIONS << "mp3" << "flac" << "wma" << "aac" << "ogg" << "asf" << "ape" << "wav" << "m4a";
 }
 
 void MediaScanner::run() {
@@ -41,6 +41,7 @@ void MediaScanner::run() {
 
 QStringList MediaScanner::singleScan(QString path) {
        _dir = path;
+       _foundMedia.clear();
        return _scan_directory(_dir);
 }