Skip to content

Commit 7d90ce4

Browse files
author
Robert McNamara
committed
Metadata/Video Library: Convert to using MetadataFactory and MetadataResults Dialog.
Switch the video library to use the new MetadataFactory and MetadataResultDialog classes, simplifying the video dialog code further. Update all myth themes to move the former "moviesel" window into base as "MythMetadataResults."
1 parent 2c7dbb4 commit 7d90ce4

File tree

13 files changed

+174
-514
lines changed

13 files changed

+174
-514
lines changed

mythtv/libs/libmythmetadata/videoscan.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ class VideoScannerThread : public QThread
7979
m_DBDataChanged(false)
8080
{
8181
m_dbmetadata = new VideoMetadataListManager;
82-
VideoMetadataListManager::metadata_list ml;
83-
VideoMetadataListManager::loadAllFromDatabase(ml);
84-
m_dbmetadata->setList(ml);
8582
m_HasGUI = gCoreContext->HasGUI();
8683
m_ListUnknown = gCoreContext->GetNumSetting("VideoListUnknownFiletypes", 0);
8784
}
@@ -94,6 +91,11 @@ class VideoScannerThread : public QThread
9491
void run()
9592
{
9693
threadRegister("VideoScanner");
94+
95+
VideoMetadataListManager::metadata_list ml;
96+
VideoMetadataListManager::loadAllFromDatabase(ml);
97+
m_dbmetadata->setList(ml);
98+
9799
QList<QByteArray> image_types = QImageReader::supportedImageFormats();
98100
QStringList imageExtensions;
99101
for (QList<QByteArray>::const_iterator p = image_types.begin();

0 commit comments

Comments
 (0)