diff options
-rw-r--r-- | src/ivimedia/qivimediaindexercontrol.cpp | 1 | ||||
-rw-r--r-- | src/plugins/ivimedia/media_simulator/mediaindexerbackend.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/ivimedia/qivimediaindexercontrol.cpp b/src/ivimedia/qivimediaindexercontrol.cpp index baae4bb..fba42fe 100644 --- a/src/ivimedia/qivimediaindexercontrol.cpp +++ b/src/ivimedia/qivimediaindexercontrol.cpp @@ -137,6 +137,7 @@ QIviMediaIndexerControlBackendInterface *QIviMediaIndexerControlPrivate::indexer QIviMediaIndexerControl::QIviMediaIndexerControl(QObject *parent) : QIviAbstractFeature(*new QIviMediaIndexerControlPrivate(QLatin1String(QIviMediaIndexer_iid), this), parent) { + qRegisterMetaType<QIviMediaIndexerControl::State>(); } /*! diff --git a/src/plugins/ivimedia/media_simulator/mediaindexerbackend.cpp b/src/plugins/ivimedia/media_simulator/mediaindexerbackend.cpp index 06c7d30..faba4c7 100644 --- a/src/plugins/ivimedia/media_simulator/mediaindexerbackend.cpp +++ b/src/plugins/ivimedia/media_simulator/mediaindexerbackend.cpp @@ -143,7 +143,9 @@ bool MediaIndexerBackend::scanWorker(const QString &mediaDir, bool removeData) qInfo() << "Scanning path: " << mediaDir; +#ifndef QT_TAGLIB QMediaPlayer player; +#endif QSqlQuery query(m_db); bool ret = query.exec("CREATE TABLE IF NOT EXISTS track " |