diff --git a/mythtv/libs/libmyth/mythcontext.cpp b/mythtv/libs/libmyth/mythcontext.cpp index dfe1cab2a05..51bd6d14700 100644 --- a/mythtv/libs/libmyth/mythcontext.cpp +++ b/mythtv/libs/libmyth/mythcontext.cpp @@ -684,7 +684,7 @@ bool MythContext::Impl::SaveDatabaseParams( // Use the new settings: m_dbParams = params; - gCoreContext->GetDB()->SetDatabaseParams(m_dbParams); + GetMythDB()->SetDatabaseParams(m_dbParams); // If database has changed, force its use: ResetDatabase(m_dbParams);