MythTV  master
Classes | Macros | Functions | Variables
mythcorecontext.cpp File Reference
#include <QCoreApplication>
#include <QUrl>
#include <QDir>
#include <QFileInfo>
#include <QDebug>
#include <QMutex>
#include <QRunnable>
#include <QWaitCondition>
#include <QNetworkInterface>
#include <QAbstractSocket>
#include <QHostAddress>
#include <QHostInfo>
#include <QNetworkAddressEntry>
#include <QLocale>
#include <QPair>
#include <QDateTime>
#include <algorithm>
#include <cmath>
#include <cstdarg>
#include <queue>
#include <unistd.h>
#include <winsock2.h>
#include "compat.h"
#include "mythconfig.h"
#include "mythdownloadmanager.h"
#include "mythcorecontext.h"
#include "mythsocket.h"
#include "mythsystemlegacy.h"
#include "mthreadpool.h"
#include "exitcodes.h"
#include "mythlogging.h"
#include "mythversion.h"
#include "logging.h"
#include "mthread.h"
#include "serverpool.h"
#include "mythdate.h"
#include "mythplugin.h"
#include "mythmiscutil.h"
Include dependency graph for mythcorecontext.cpp:

Go to the source code of this file.

Classes

class  MythCoreContextPrivate
 
class  SendAsyncMessage
 

Macros

#define LOC   QString("MythCoreContext::%1(): ").arg(__func__)
 

Functions

static void delete_sock (QMutexLocker &locker, MythSocket **s)
 

Variables

MythCoreContextgCoreContext = nullptr
 This global variable contains the MythCoreContext instance for the app. More...
 
QMutex * avcodeclock = new QMutex(QMutex::Recursive)
 This global variable is used to makes certain calls to avlib threadsafe. More...
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("MythCoreContext::%1(): ").arg(__func__)

Definition at line 51 of file mythcorecontext.cpp.

Function Documentation

◆ delete_sock()

static void delete_sock ( QMutexLocker &  locker,
MythSocket **  s 
)
static

Variable Documentation

◆ gCoreContext

MythCoreContext* gCoreContext = nullptr

This global variable contains the MythCoreContext instance for the app.

Definition at line 53 of file mythcorecontext.cpp.

Referenced by AddCertifications(), HTTPRequest::AddCORSHeaders(), MusicFileScanner::AddFileToDB(), AddFormat(), Content::AddLiveStream(), Scheduler::AddNewRecords(), Content::AddRecordingLiveStream(), UPNPScanner::AddServer(), HTTPLiveStream::AddStream(), Content::AddVideoLiveStream(), AirPlayHardwareId(), JobQueue::AllowedToRun(), VideoPlayerCommandPrivate::AltPlayerFor(), ControlRequestHandler::AnnounceSocket(), MainGeneralSettings::applyChange(), MythCommandLineParser::ApplySettingsOverride(), ArchiveFileSelector::ArchiveFileSelector(), AudioDeviceComboBox::AudioDeviceComboBox(), AudioOutputALSA::AudioOutputALSA(), AudioOutputBase::AudioOutputBase(), AudioPlayer::AudioPlayer(), AudioTest::AudioTest(), AutoExpire::AutoExpire(), AvFormatDecoder::AutoSelectAudioTrack(), AvFormatDecoder::AvFormatDecoder(), MythPlayer::AVSync(), BackendConnectionManager::BackendConnectionManager(), MainServer::BackendQueryDiskSpace(), StartPrompter::backendRunningPrompt(), DBUtil::BackupDB(), HTTPRequest::BasicAuthentication(), ServerPool::bind(), BlankFrameDetector::BlankFrameDetector(), BorderDetector::BorderDetector(), ImageScanThread< ImageDbSg >::Broadcast(), LiveTVChain::BroadcastUpdate(), TVBrowseHelper::BrowseChannel(), TVBrowseHelper::BrowseDispInfo(), TVBrowseHelper::BrowseEnd(), BrowserApi::BrowserApi(), TVBrowseHelper::BrowseStart(), HTTPRequest::BuildResponseHeader(), GameUI::BuildTree(), burnISOImage(), AutoExpire::CalcParams(), CalcTrackLength(), DiSEqCDevRotor::CalculateAzimuth(), LogViewer::cancelClicked(), AudioOutputBase::CanPassthrough(), CDRipperThread::CDRipperThread(), CECAdapter::CECAdapter(), Playlist::changed(), ImageManagerFe::ChangeOrientation(), ChannelRecPriority::ChannelRecPriority(), check_cardsource(), StorageGroup::CheckAllStorageGroupDirs(), WelcomeDialog::checkAutoStart(), ChannelBase::CheckChannel(), LCDProcClient::checkConnections(), IdleScreen::CheckConnectionToServer(), WelcomeDialog::checkConnectionToServer(), ThemeUpdateChecker::checkForUpdate(), checkImageStoragePaths(), MythUserSession::CheckPermission(), PortChecker::checkPort(), Scheduler::CheckShutdownServer(), checkStoragePaths(), ClassicCommDetector::ClassicCommDetector(), ClassicLogoDetector::ClassicLogoDetector(), cleanup(), MythRAOPConnection::CleanUp(), CleanupMyOldInUsePrograms(), CleanupTask::CleanupOldRecordings(), CleanupTask::CleanupProgramListings(), clearAllKeys(), ClearSettingsCache(), MythContextPrivate::clearSettingsCacheOverride(), ImageManagerFe::ClearStorageGroup(), GallerySlideView::Close(), GalleryThumbView::Close(), CommBreakMap::CommBreakMap(), commDetectorGotNewCommercialBreakList(), SchemaUpgradeWizard::Compare(), CompleteJob(), MythPlugin::config(), configplugin_cb(), connect_to_master(), MainServer::connectionClosed(), AudioOutputPulseAudio::ConnectPlaybackStream(), MythSocket::ConnectToHost(), LCDProcClient::connectToHost(), DBUtil::CountClients(), ImageScanThread< ImageDbSg >::CountFiles(), VisualizationSettings::Create(), RatingSettings::Create(), ZMMiniPlayer::Create(), ImportSettings::Create(), PlayerSettings::Create(), GeneralSettings::Create(), MetadataSettings::Create(), AudioSetupWizard::Create(), ManualSchedule::Create(), GalleryThumbView::Create(), GameUI::Create(), PrevRecordedList::Create(), ZMEvents::Create(), BrowserConfig::Create(), ProgLister::Create(), MythUIVirtualKeyboard::Create(), VideoDialog::Create(), MythControls::Create(), ImportMusicDialog::Create(), ZMLivePlayer::Create(), PlaylistEditorView::Create(), Ripper::Create(), PlaybackBox::Create(), LyricsView::createFindLyricsMenu(), ImageManagerFe::CreateImages(), createISOImage(), PlaybackBox::createJobMenu(), MetadataOptions::CreateLookup(), PlaybackSettings::CreateNewPlaybackProfileSlot(), PlayerContext::CreatePlayer(), PlaybackBox::createPlaylistJobMenu(), VideoDialog::CreatePlayMenu(), ImageManagerFe::CreateThumbnails(), MythSessionManager::CreateUserSession(), CurrentPlaybackProfile(), CustomEdit::CustomEdit(), MessageHandler::customEvent(), IdleScreen::customEvent(), StorageGroupEditor::customEvent(), LookerUpper::customEvent(), WelcomeDialog::customEvent(), GalleryThumbView::customEvent(), ThemeChooser::customEvent(), MythSystemEventHandler::customEvent(), BrowserApi::customEvent(), MusicCommon::customEvent(), MythWebView::customEvent(), LyricsData::customEvent(), NetworkControl::customEvent(), MainServer::customEvent(), EditAlbumartDialog::customEvent(), MythMainWindow::customEvent(), HouseKeeper::customEvent(), MusicPlayer::customEvent(), TV::customEvent(), MetadataOptions::customEvent(), CustomEventRelayer::CustomEventRelayer(), CustomPriority::CustomPriority(), MusicPlayer::decoderHandlerReady(), ServerPool::DefaultBroadcast(), MediaMonitor::defaultDevice(), Myth::DelayShutdown(), CaptureCardEditor::DeleteAllCaptureCardsOnHost(), MythRAOPDevice::deleteClient(), NetworkControl::deleteClient(), MythAirplayServer::deleteConnection(), RemoteFile::DeleteFile(), ImageManagerFe::DeleteFiles(), CustomEventRelayer::deleteLater(), HardwareProfile::DeleteProfile(), Dvr::DeleteRecording(), DeleteThread::DeleteThread(), MythCodecContext::DestroyInterop(), MythMainWindow::destroyMainWindow(), DetectLetterbox::DetectLetterbox(), HTTPRequest::DigestAuthentication(), HardwareProfile::Disable(), MythSocket::DisconnectFromHost(), ProgramInfo::DiscoverRecordingDirectory(), ThreadedFileWriter::DiskLoop(), InfoList::Display(), DLNA::DLNAProfileName(), DBUtil::DoBackup(), BurnMenu::doBurn(), doBurnDVD(), ParentalLevelChangeCheckerPrivate::DoCheck(), RadioStreamUpdateTask::DoCheckRun(), ThemeUpdateTask::DoCheckRun(), HardwareProfileTask::DoCheckRun(), ArtworkTask::DoCheckRun(), MythFillDatabaseTask::DoCheckRun(), OutboundRequestHandler::DoConnectToMaster(), MainServer::DoDeleteInDB(), StorageGroupEditor::DoDeleteSlot(), StorageGroupDirSetting::DoDeleteSlot(), MainServer::DoDeleteThread(), NetBase::DoDownloadAndPlay(), DoFlagCommercials(), ZMClient::doGetMonitorList(), MainServer::DoHandleDeleteRecording(), MainServer::DoHandleStopRecording(), MainServer::DoHandleUndeleteRecording(), NativeArchive::doImportArchive(), PlaybackBox::doJobQueueJob(), StatusBox::doListingsStatus(), StatusBox::doMachineStatus(), doNativeArchive(), TV::DoPlay(), PlaybackBox::doPlaylistJobQueueJob(), EditAlbumartDialog::doRemoveImageFromTag(), MythFillDatabaseTask::DoRun(), VideoScanner::doScan(), GameScanner::doScan(), TV::DoSeekAbsolute(), TV::DoTogglePause(), MainServer::DoTruncateThread(), StatusBox::doTunerStatus(), doUpgradeMusicDatabaseSchema(), doUpgradeTVDatabaseSchema(), doUpgradeVideoDatabaseSchema(), Content::DownloadFile(), downloadRemoteFile(), DTVRecorder::DTVRecorder(), EditAlbumartDialog::EditAlbumartDialog(), EditMetadataDialog::EditMetadataDialog(), ScheduleCommon::EditRecording(), Ripper::ejectCD(), MythUDPListener::Enable(), HardwareProfile::Enable(), MythContextPrivate::EnableDBerrors(), SubtitleScreen::EnableSubtitles(), MythMainWindow::EnterStandby(), MythPlayer::EventLoop(), exec_program_tv_cb(), RemoteFile::Exists(), MythMainWindow::ExitStandby(), MythMainWindow::ExitToMainMenu(), ExpertSettingsEditor::ExpertSettingsEditor(), AutoExpire::ExpireEpisodesOverMax(), AutoExpire::ExpireRecordings(), NativeArchive::exportRecording(), NativeArchive::exportVideo(), ExtractImage(), filenameFromMetadata(), AutoExpire::FillDBOrdered(), AutoExpire::FillExpireList(), ChannelRecPriority::FillList(), TV::FillOSDMenuJumpRec(), Scheduler::FillRecordingDir(), PlayerSettings::fillRegionList(), CaptureCard::fillSelections(), HttpStatus::FillStatusXML(), findAllDBSearchGrabbers(), findAllDBTreeGrabbersByHost(), EditMetadataDialog::FindBanner(), EditRomInfoDialog::FindBoxart(), EditMetadataDialog::FindCoverArt(), MythThemedMenu::findDepends(), EditRomInfoDialog::FindFanart(), EditMetadataDialog::FindFanart(), StorageGroup::FindFileDir(), RemoteFile::FindFileList(), findIcon(), LyricsData::findLyrics(), FindLyrics(), EditRomInfoDialog::FindScreenshot(), EditMetadataDialog::FindScreenshot(), SourceManager::findScripts(), SourceManager::findScriptsDB(), findSearchGrabberByCommand(), findSearchGrabberInDB(), EditMetadataDialog::FindTrailer(), findTreeGrabberByCommand(), findTreeGrabberInDB(), ImportNative::finishedPressed(), TVRec::FinishedRecording(), FlagCommercials(), GallerySlideView::GallerySlideView(), generate_file_url(), get_cardtype(), MainServer::GetActiveBackends(), HardwareProfile::GetAdminPasswordFromFile(), MusicMetadata::getAlbumArtFile(), MetaIOFLACVorbis::getAlbumArtList(), AutoExpire::GetAllExpiring(), DBUtil::GetBackupDirectory(), Video::GetBluray(), MythDVDPlayer::GetBookmark(), MythBDPlayer::GetBookmark(), MythPlayer::GetBookmark(), Dvr::GetConflictList(), Myth::GetConnectionInfo(), ZMEvents::getDateList(), getDBParamters(), MythBurn::getDefaultProfile(), VideoDisplayProfile::GetDefaultProfileName(), MythDisplay::GetDesiredScreen(), Dvr::GetEncoderList(), getFileDetails(), PlayerContext::GetFilters(), ChannelInfo::GetFormatted(), Myth::GetFrontends(), Content::GetHash(), Myth::GetHostName(), CardUtil::GetInputIDs(), ImageManagerFe::getInstance(), MythVTBInterop::GetInteropType(), MythNVDECInterop::GetInteropType(), MythVDPAUInterop::GetInteropType(), MythOpenGLInterop::GetInteropType(), JobQueue::GetJobCommand(), JobQueue::GetJobDescription(), JobQueue::GetJobsInQueue(), MusicMetadata::getLocalFilename(), getLocalWritePath(), MythMainWindow::getMainWindow(), MythCoreContext::GetMasterServerIP(), MythCoreContext::GetMasterServerPort(), AudioOutputSettings::GetMaxHDRate(), MainServer::GetMediaServerByHostname(), BrowserApi::GetMetadata(), GetMythXMLURL(), Scheduler::GetNextLiveTVDir(), MythPlayer::GetPlaybackData(), ProgramInfo::GetPlaybackURL(), Content::GetPreviewImage(), PreviewGeneratorQueue::GetPreviewImage(), HardwareProfile::GetProfileURL(), Guide::GetProgramGuide(), Guide::GetProgramList(), TVRec::GetProgramRingBufferForLiveTV(), ImageScanThread< ImageDbSg >::GetProgress(), Dvr::GetRecordedList(), Content::GetRecording(), MythUIFileBrowser::GetRemoteFileList(), MythFEXML::GetScreenShot(), MythSessionManager::GetSession(), LogViewer::getSetting(), Myth::GetSetting(), MainServer::GetSlaveByHostname(), HttpServer::GetSocketTimeout(), Frontend::GetStatus(), getStorageGroupURL(), MythVAAPIContext::GetSupportedCodec(), getTempDirectory(), MythUIClock::GetTimeText(), MetaGrabberScript::GetType(), Dvr::GetUpcomingList(), AudioOutputSettings::GetUsers(), CardUtil::GetVideoDevices(), GetVideoDirsByHost(), VideoSelector::getVideoListFromDB(), BrowserApi::GetVolume(), StorageGroupDirStorage::GetWhereClause(), PrePostRollFlagger::go(), ClassicCommDetector::go(), Goom::Goom(), GrabberManager::GrabberManager(), GuiVidModeResolution(), ExitPrompter::halt(), handle_command(), MainServer::HandleAddChildInput(), MythBurn::handleAddFile(), FileServerHandler::HandleAnnounce(), BaseRequestHandler::HandleAnnounce(), MainServer::HandleAnnounce(), MainServer::HandleCheckRecordingActive(), CECAdapterPriv::HandleCommand(), MainServer::HandleDeleteFile(), MetadataOptions::HandleDownloadedImages(), FileServerHandler::HandleDownloadFile(), MainServer::HandleDownloadFile(), handleDVDMedia(), ExitPrompter::handleExit(), FileServerHandler::HandleFileQuery(), MainServer::HandleFileTransferQuery(), MainServer::HandleFillProgramInfo(), handleGalleryMedia(), MainServer::HandleGenPreviewPixmap(), FileServerHandler::HandleGetFileList(), MainServer::HandleGetRecorderFromNum(), MainServer::HandleGetRecorderNum(), MainServer::HandleGoToSleep(), Scheduler::HandleIdleShutdown(), ImageHandler< ImageDbSg >::HandleIgnore(), MessageHandler::HandleInbound(), MainServer::HandleIsActiveBackendQuery(), MainServer::HandleLockTuner(), handleMedia(), MainServer::HandleMessage(), MainServer::HandleMusicCalcTrackLen(), MainServer::HandleMusicFindAlbumArt(), MainServer::HandleMusicFindLyrics(), MainServer::HandleMusicSaveLyrics(), MainServer::HandleMusicTagAddImage(), MainServer::HandleMusicTagChangeImage(), MainServer::HandleMusicTagGetImage(), MainServer::HandleMusicTagRemoveImage(), MainServer::HandleMusicTagUpdateMetadata(), MainServer::HandleMusicTagUpdateVolatile(), TV::HandleOSDClosed(), MessageHandler::HandleOutbound(), TVRec::HandlePendingRecordings(), MainServer::HandlePixmapGetIfModified(), MainServer::HandlePixmapLastModified(), MythSystemLegacy::HandlePostRun(), MythSystemLegacy::HandlePreRun(), MainServer::HandleQueryCheckFile(), FileServerHandler::HandleQueryFileExists(), MainServer::HandleQueryFileExists(), FileServerHandler::HandleQueryFileHash(), MainServer::HandleQueryFileHash(), FileServerHandler::HandleQueryFileTransfer(), MainServer::HandleQueryFindFile(), BaseRequestHandler::HandleQueryHostname(), MainServer::HandleQueryHostname(), MainServer::HandleQueryRecordings(), Scheduler::HandleRecording(), Scheduler::HandleRecordingStatusChange(), Scheduler::HandleReschedule(), MythAirplayServer::HandleResponse(), Scheduler::HandleRunSchedulerStartup(), MainServer::HandleScanMusic(), MainServer::HandleSetSetting(), MainServer::HandleSettingQuery(), MainServer::HandleSGFileQuery(), MainServer::HandleSGGetFileList(), handleSIGUSR1(), StartPrompter::handleStart(), TV::HandleStateChange(), HardwareProfile::HardwareProfile(), MythNVDECContext::HaveNVDEC(), MythVAAPIContext::HaveVAAPI(), helloID(), ImageManagerFe::HideFiles(), HistogramAnalyzer::HistogramAnalyzer(), CaptureCard::Hostname::Hostname(), HTTPLiveStream::HTTPLiveStream(), HttpStatus::HttpStatus(), MythNVDECContext::HwDecoderInit(), IdleScreen::IdleScreen(), MythMainWindow::IdleTimeout(), ImageManagerFe::IgnoreDirs(), GalleryThumbView::Import(), ImportMusicDialog::ImportMusicDialog(), NativeArchive::importRecording(), NativeArchive::importVideo(), StorageGroup::Init(), MythTranslationPrivate::Init(), MythVideoOutputOpenGL::Init(), GrabberSettings::Init(), AudioSetupWizard::Init(), StatusBox::Init(), ThemeChooser::Init(), V4LChannel::Init(), MythMainWindow::Init(), MythContext::Init(), MediaServer::Init(), ProgFinder::Init(), PrevRecordedList::Init(), MythRAOPConnection::Init(), MythContextPrivate::Init(), MythUIHelperPrivate::Init(), MusicCommon::init(), LCDProcClient::init(), PlaybackBox::Init(), GuideGrid::Init(), MythUIWebBrowser::Init(), TVRec::Init(), ClassicCommDetector::Init(), TV::Init(), init_jobs(), MPEG2fixup::InitAV(), MythPlayer::InitAVSync(), MythVideoOutput::InitDisplayMeasurements(), TV::InitFromDB(), MythMediaCodecInterop::Initialise(), Frontend::InitialiseActions(), MythVDPAUContext::InitialiseContext(), MythVAAPIContext::InitialiseContext(), MythVAAPIContext::InitialiseContext2(), MythMediaCodecContext::InitialiseDecoder(), MythVTBContext::InitialiseDecoder(), MythNVDECContext::InitialiseDecoder(), MythCodecContext::InitialiseDecoder(), MythCodecContext::InitialiseDecoder2(), UPnp::Initialize(), InitializeDatabase(), ChannelBase::InitializeInput(), V4LChannel::InitializeInputs(), TV::InitKeys(), EditPowerSearchPopup::initLists(), AudioOutputBase::InitSettings(), JobQueue::InJobRunWindow(), insertGrabberInDB(), MusicFileScanner::IsArtFile(), DBUtil::IsBackupInProgress(), TVBrowseHelper::IsBrowsing(), RecordingQuality::IsDamaged(), CardUtil::IsInputTypePresent(), ISO639_fill_selections(), iso639_get_language_list(), isRecording(), MusicFileScanner::IsRunning(), DeleteMap::IsSaved(), MythSessionManager::IsValidSession(), MythSessionManager::IsValidUser(), JobAllowUserJob(), JobQueue::JobQueue(), JobQueue::JobText(), WelcomeDialog::keyPressEvent(), MythScreenType::keyPressEvent(), MusicCommon::keyPressEvent(), ProgramRecPriority::keyPressEvent(), MythTranslation::LanguageChanged(), LanguageSelection::LanguageSelection(), RemoteFile::LastModified(), LCDProcClient::LCDProcClient(), StartPrompter::leaveBackendRunning(), LinuxFirewireDevice::LinuxFirewireDevice(), ServerPool::listen(), BackendSettings::Load(), StorageGroupEditor::Load(), MythTranslation::load(), LanguageSelection::Load(), StorageGroupListEditor::Load(), AudioConfigSettings::Load(), RawSettingsEditor::Load(), InputSelector::Load(), VideoSourceSelector::Load(), DiSEqCDevTree::Load(), TransFreqTableSelector::Load(), PostProcMixin::Load(), CaptureCardEditor::Load(), CardInputEditor::Load(), DeleteMap::LoadAutoSaveMap(), DVDThemeSelector::loadConfiguration(), SelectDestination::loadConfiguration(), ExportNative::loadConfiguration(), MythBurn::loadConfiguration(), GlobalSetup::loadData(), VideoSetupWizard::loadData(), ScreenSetup::loadData(), SourceSetup::loadData(), VideoDialog::loadData(), MythContextPrivate::LoadDatabaseSettings(), PrevRecordedList::LoadDates(), MythBurn::loadEncoderProfiles(), LoadFromOldRecorded(), LoadFromProgram(), LoadFromRecorded(), ProgramInfo::LoadFromScheduler(), DeleteMap::LoadMap(), MusicPlayer::loadPlaylist(), MythUIHelper::LoadQtConfig(), UPnpCDSTv::LoadRecordings(), LCDProcClient::loadSettings(), MusicPlayer::loadSettings(), MythContextPrivate::loadSettingsCacheOverride(), HttpServer::LoadSSLConfig(), TextSubtitleParser::LoadSubtitles(), ThemeUpdateTask::LoadVersion(), ThemeChooser::LoadVersion(), UPnpCDSVideo::LoadVideos(), PreviewGenerator::LocalPreviewRun(), MythSessionManager::LoginUser(), LogViewer::LogViewer(), MetadataFactory::Lookup(), LyricsView::LyricsView(), main(), MainServer::MainServer(), MainVisual::MainVisual(), ImageManagerFe::MakeDir(), ImageAdapterSg::MakeFileUrl(), ImageAdapterSg::MakeThumbUrl(), Dvr::ManageJobQueue(), Myth::ManageUrlProtection(), ProgramInfo::MarkAsInUse(), BackendSettings::masterBackendChanged(), ExitPrompter::masterPromptExit(), MediaMonitor::MediaMonitor(), GalleryThumbView::MenuAction(), TV::MenuItemDisplayPlayback(), GallerySlideView::MenuMain(), GalleryThumbView::MenuShow(), GalleryThumbView::MenuSlideshow(), MessageHandler::MessageHandler(), MetaIO::MetaIO(), ImageManagerFe::MoveDbImages(), RemoteFile::MoveFile(), MusicCommon::MusicCommon(), MusicPlayer::MusicPlayer(), MythContext::MythContext(), MythDateFormatCB(), mythdir_opendir(), MythLanguage(), MythMainWindow::MythMainWindow(), MythOpenGLVideo::MythOpenGLVideo(), MythPainter::MythPainter(), MythPlayer::MythPlayer(), mythplugin_init(), MythScreenType::MythScreenType(), MythSessionManager::MythSessionManager(), MythShortDateFormat(), MythSocket::MythSocket(), MythSortHelper::MythSortHelper(), MythSystemEventHandler::MythSystemEventHandler(), MythTimeFormat(), MythVAAPIInteropDRM::MythVAAPIInteropDRM(), MythVideoOutput::MythVideoOutput(), MythWelcomeSettings::MythWelcomeSettings(), nearestName(), NetBase::NetBase(), NetTree::NetTree(), NetworkControl::NetworkControl(), MythRAOPDevice::newConnection(), MythAirplayServer::newConnection(), NetworkControl::newConnection(), ServerPool::newTcpConnection(), ServerPool::newUdpDatagram(), ImageAdapterLocal::Notify(), ImageAdapterSg::Notify(), TVRec::NotifySchedulerOfRecording(), MetadataOptions::OnImageSearchListSelection(), ParentalLevelChangeCheckerPrivate::OnPasswordEntered(), MetadataFactory::OnVideoResult(), ThreadedFileWriter::Open(), CECAdapterPriv::Open(), MythRAOPConnection::OpenAudioDevice(), MSqlDatabase::OpenDatabase(), AudioOutputALSA::OpenDevice(), AudioOutputCA::OpenDevice(), FileRingBuffer::OpenFile(), AvFormatDecoder::OpenFile(), BDRingBuffer::OpenFile(), MythPlayer::OpenFile(), DVDRingBuffer::OpenFile(), AudioOutputALSA::OpenMixer(), MusicPlayer::openOutputDevice(), RemoteFile::openSocket(), TV::OSDDialogEvent(), ParentalLevelChangeCheckerPrivate::ParentalLevelChangeCheckerPrivate(), MythUIClock::ParseElement(), MythUIText::ParseElement(), HTTPRequest::ParseRequest(), MythThemedMenu::parseThemeButton(), BrowserApi::Pause(), MythDisplay::PauseForModeSwitch(), JobQueue::PauseJob(), MythAirplayServer::PausePlayback(), RecMetadataEdit::PerformQuery(), ping(), VideoPlayerCommand::Play(), BrowserApi::Play(), MusicPlayer::play(), PlaybackBox::Play(), TV::Playback(), PlaybackBox::PlaybackBox(), PlaybackProfileConfig::PlaybackProfileConfig(), PlaybackSock::PlaybackSock(), playDisc(), VideoPlayerCommandPrivate::PlayerFor(), BrowserApi::PlayFile(), PlaylistEditorView::PlaylistEditorView(), Frontend::PlayRecording(), BrowserApi::PlayTrack(), BrowserApi::PlayURL(), VideoSetupWizard::playVideoTest(), VideoDialog::playVideoWithTrailers(), plugin_cb(), ProgDetails::PowerPriorities(), MythPlayer::PrebufferEnoughFrames(), DatabaseLogger::prepare(), PrevRecordedList::PrevRecordedList(), HttpStatus::PrintMachineInfo(), WeatherSource::ProbeScript(), MythSystemLegacy::ProcessFlags(), PlaybackBox::processNetworkControlCommand(), TV::ProcessNetworkControlCommand(), NetworkControl::processPlay(), NetworkControl::processQuery(), JobQueue::ProcessQueue(), HttpConfig::ProcessRequest(), MythRAOPConnection::ProcessRequest(), MainServer::ProcessRequestWork(), Myth::ProfileUpdated(), ProgramInfo::ProgramInfo(), ProgramRecPriority::ProgramRecPriority(), LanguageSelection::prompt(), MDBManager::PurgeIdleConnections(), Scheduler::PutInactiveSlavesToSleep(), Myth::PutSetting(), DBUtil::QueryDBMSVersion(), FileServerHandler::QueryFileSystems(), HouseKeeperTask::QueryLast(), ProgramInfo::QueryTotalDuration(), JobQueue::QueueJobs(), JobQueue::QueueRecordingJobs(), RawSendEvent(), MetaIOID3::readAlbumArt(), MetaIO::readMetadata(), ExitPrompter::reboot(), RebuildSeekTable(), AudioOutputBase::Reconfigure(), MainServer::reconnectTimeout(), RecordingInfo::RecordingInfo(), JobQueue::RecoverQueue(), ThemeChooser::refreshDownloadableThemes(), MythRAOPDevice::RegisterForBonjour(), MHIContext::Reinit(), reloadTheme(), RemoteCancelNextRecording(), RemoteCheckFile(), RemoteCheckForRecording(), RemoteDeleteRecording(), RemoteFillProgramInfo(), RemoteGetActiveBackends(), RemoteGetExistingRecorder(), RemoteGetFileList(), RemoteGetFlags(), FileSystemInfo::RemoteGetInfo(), RemoteGetLoad(), RemoteGetMemStats(), RemoteGetPreviewIfModified(), RemoteGetPreviewLastModified(), RemoteGetRecordingList(), RemoteGetRecordingMask(), RemoteGetRecordingStatus(), RemoteGetState(), RemoteGetUptime(), VideoDialog::RemoteImageCheck(), RemoteIsBusy(), PreviewGenerator::RemotePreviewRun(), RemoteRecordings(), RemoteRecordPending(), RemoteRequestFreeInputInfo(), RemoteSendReceiveStringList(), RemoteStopLiveTV(), RemoteStopRecording(), RemoteUndeleteRecording(), MusicFileScanner::RemoveFileFromDB(), removeGrabberFromDB(), ImageManagerFe::RenameFile(), ThreadedFileWriter::ReOpen(), GallerySlideView::RepeatOn(), GalleryThumbView::RepeatOn(), NetStream::Request(), MythPower::RequestFeature(), ImageManagerFe::RequestMetaData(), Reschedule(), MythContextPrivate::ResetDatabase(), resetTheme(), MythVideoOutput::ResizeForVideo(), JobQueue::RestartJob(), MusicPlayer::restorePosition(), JobQueue::ResumeJob(), AllMusic::resync(), Ripper::RipComplete(), Ripper::Ripper(), CDRipperThread::ripTrack(), RSSManager::RSSManager(), DeleteThread::run(), SendStringListThread::run(), AlarmNotifyThread::run(), MonitorThread::run(), Reconnect::run(), ImportRecorder::run(), SystemEventThread::run(), MythDownloadManager::run(), ProgramInfoUpdater::run(), VideoScannerThread::run(), PreviewGenerator::Run(), CDRipperThread::run(), MetadataImageDownload::run(), Scheduler::run(), SignalMonitor::run(), GrabberDownloadThread::run(), NAMThread::run(), DBLoggerThread::run(), RingBuffer::run(), HttpWorker::run(), TVRec::run(), AlbumArtScannerThread::run(), ReadMetaThread::run(), CopyImageThread::run(), SendAsyncMessage::run(), run_backend(), SettingsHelper::RunEpilog(), AutoExpire::RunExpirer(), WelcomeDialog::runMythFillDatabase(), RunNetTree(), RunProgramFinder(), GuideGrid::RunProgramGuide(), SettingsHelper::RunProlog(), PreviewGenerator::RunReal(), MythBurn::runScript(), runTestDVD(), RunVideoScreen(), AudioSetupWizard::save(), VideoSetupWizard::save(), LanguageSelection::Save(), RawSettingsEditor::Save(), TransFreqTableSelector::Save(), LyricsData::save(), HostDBStorage::Save(), GlobalDBStorage::Save(), PlaybackProfileConfig::Save(), CaptureCard::Save(), ThemeChooser::saveAndReload(), VideoFilterSettings::saveAsDefault(), VideoOutWindow::SaveBottomLine(), DVDThemeSelector::saveConfiguration(), SelectDestination::saveConfiguration(), GlobalSetup::saveData(), ScreenSetup::saveData(), MythContextPrivate::SaveDatabaseParams(), DeleteMap::SaveMap(), ZMClient::saveNotificationMonitors(), MusicPlayer::savePosition(), VideoDialog::SavePosition(), MythContextPrivate::saveSettingsCache(), PlaylistEditorView::saveTreePosition(), VideoColourSpace::SaveValue(), PlaybackBox::saveViewChanges(), MusicFileScanner::ScanArtwork(), ScanCountry::ScanCountry(), ImportCoverArtDialog::scanDirectory(), ImageManagerFe::ScanImagesAction(), MusicFileScanner::ScanMusic(), ScanMusic(), ScanNetwork::ScanNetwork(), ImageManagerFe::ScanQuery(), AvFormatDecoder::ScanStreams(), ScanVideoDirectory(), ScanVideos(), SceneChangeDetector::SceneChangeDetector(), Scheduler::SchedLiveTV(), Scheduler::SchedNewRecords(), SchemaUpgradeWizard::SchemaUpgradeWizard(), MusicFileScanner::SearchDirs(), MythAirplayServer::SeekPosition(), ServerPool::SelectDefaultListen(), MetadataOptions::SelectLocalBanner(), MetadataOptions::SelectLocalCoverart(), MetadataOptions::SelectLocalFanart(), GalleryThumbView::SelectZoomWidget(), AutoExpire::SendDeleteMessages(), SendMythSystemPlayEvent(), SendMythSystemRecEvent(), MythRAOPConnection::SendNotification(), PlaybackSock::SendReceiveStringList(), ScheduledRecording::SendReschedule(), MainServer::SendSlaveDisconnectedEvent(), SendSystemEvent(), MusicMetadata::setArtistAndTrackFormats(), ImageManagerFe::SetCover(), MetaGrabberScript::SetDefaultArgs(), VideoDisplayProfile::SetDefaultProfileName(), VideoScannerThread::SetDirs(), MythMainWindow::SetDrawEnabled(), BackendContext::SetFrontendConnected(), BackendContext::SetFrontendDisconnected(), PlaybackBox::setGroupFilter(), MythFillDatabaseTask::SetHourWindowFromDB(), PlayerContext::SetInitialTVState(), StorageGroupEditor::SetLabel(), TVRec::SetLiveRecording(), ZMLivePlayer::setMonitorLayout(), MpegRecorder::SetOptionsFromProfile(), ImportRecorder::SetOptionsFromProfile(), DTVRecorder::SetOptionsFromProfile(), V4L2encRecorder::SetOptionsFromProfile(), ASIRecorder::SetOptionsFromProfile(), NuppelVideoRecorder::SetOptionsFromProfile(), HTTPLiveStream::SetOutputVars(), PlayerContext::SetPlayingInfo(), RecorderBase::SetRecordingStatus(), ImportMusicDialog::setSaveHost(), Ripper::setSaveHost(), setScheduledWakeupTime(), EncoderLink::SetSocket(), StartingChannel::SetSourceID(), AudioOutputBase::SetSWVolume(), OSD::SetText(), setting_to_localtime(), PlayerContext::SetTVChain(), RemoteEncoder::Setup(), DeviceReadBuffer::Setup(), LCDProcClient::SetupLCD(), Weather::SetupScreens(), WebSocketWorker::SetupSocket(), SourceManager::setupSources(), setupTVs(), ZMClient::setupZMClient(), VideoOutWindow::SetVideoScalingAllowed(), BrowserApi::SetVolume(), AudioOutputPulseAudio::SetVolumeChannel(), MythFontProperties::SetZoom(), MythUIWebBrowser::SetZoom(), SubtitleScreen::SetZoom(), MythContextPrivate::ShowConnectionFailurePopup(), CaptureCardEditor::ShowDeleteAllCaptureCardsDialogOnHost(), StorageGroupEditor::ShowDeleteDialog(), ProgFinder::ShowGuide(), GalleryThumbView::ShowHidden(), VideoDialog::ShowHomepage(), GallerySlideView::ShowNextSlide(), TV::ShowOSDPromptDeleteRecording(), ThemeChooser::showPopupMenu(), GalleryThumbView::ShowSettings(), ViewScheduleDiff::showStatus(), GalleryThumbView::ShowType(), NetBase::ShowWebVideo(), shutdown(), WelcomeDialog::shutdownNow(), Scheduler::ShutdownServer(), MythContextPrivate::SilenceDBerrors(), GallerySlideView::SlideAvailable(), BookmarkManager::slotBookmarkClicked(), GeneralSetupWizard::slotDelete(), ScreenWizard::slotResetSettings(), RatingSettings::slotSave(), VisualizationSettings::slotSave(), GeneralSettings::slotSave(), ImportSettings::slotSave(), MetadataSettings::slotSave(), PlayerSettings::slotSave(), GrabberSettings::slotSave(), BrowserConfig::slotSave(), ScreenWizard::slotSaveSettings(), BookmarkManager::slotShowMarked(), GeneralSetupWizard::slotView(), MythDisplay::SpanAllScreens(), TVRec::SpawnLiveTV(), GalleryThumbView::Start(), GallerySlideView::Start(), UPNPScanner::Start(), MythAirplayServer::Start(), BurnMenu::start(), HouseKeeper::Start(), startAppearWiz(), EditAlbumartDialog::startCopyImageToTag(), startDatabaseTree(), RecordingInfo::StartedRecording(), DVDRingBuffer::StartFromBeginning(), WelcomeDialog::startFrontend(), startGuide(), MediaMonitor::StartMonitoring(), MythAirplayServer::StartPlayback(), MusicPlayer::StartPlayback(), TVRec::StartRecording(), TV::StartTV(), startTVNormal(), MHInteractionChannel::status(), StatusBox::StatusBox(), BrowserApi::Stop(), MusicPlayer::stop(), MainServer::Stop(), StartPrompter::stopBackend(), JobQueue::StopJob(), MythAirplayServer::StopPlayback(), TV::StopPlayback(), Dvr::StopRecording(), StorageGroupListEditor::StorageGroupListEditor(), DiSEqCDevTree::Store(), HardwareProfile::SubmitProfile(), VideoDialog::SwitchLayout(), NetTree::SwitchView(), ThreadedFileWriter::SyncLoop(), TemplateFinder::TemplateFinder(), TemplateMatcher::TemplateMatcher(), MythContextPrivate::TempMainWindow(), MythContextPrivate::TestDBconnection(), VideoSetupWizard::testHDVideo(), VideoSetupWizard::testSDVideo(), ThemeChooser::ThemeChooser(), ThemeUpdateChecker::ThemeUpdateChecker(), VideoDialog::ToggleBrowseMode(), VideoDialog::ToggleFlatView(), VideoOutWindow::ToggleMoveBottomLine(), MythPlayer::ToggleNightMode(), NetTree::ToggleRSSUpdates(), ThemeChooser::toggleThemeUpdateNotifications(), NetTree::ToggleTreeUpdates(), RecordingRule::ToMap(), MusicMetadata::toMap(), ProgramInfo::ToMap(), MythDate::toString(), Transcode::TranscodeFile(), transUnlink(), MHIContext::TuneTo(), TVRec::TuningFrequency(), TVRec::TuningNewRecorder(), TVRec::TuningSignalCheck(), TVMenuCallback(), Dvr::UnDeleteRecording(), unlockShutdown(), MythAirplayServer::UnpausePlayback(), AudioConfigSettings::UpdateCapabilities(), TV::UpdateChannelList(), GuideGrid::updateChannelsUI(), UpdateDBVersionNumber(), MusicFileScanner::UpdateFileInDB(), GameHandler::UpdateGameDB(), GalleryThumbView::UpdateImageItem(), ChannelRecPriority::updateInfo(), GuideGrid::updateInfo(), HouseKeeperTask::UpdateLastRun(), updateLastRunEnd(), MusicFileScanner::updateLastRunEnd(), updateLastRunStart(), MusicFileScanner::updateLastRunStart(), updateLastRunStatus(), MusicFileScanner::updateLastRunStatus(), ChannelRecPriority::updateList(), UpdateMeta(), updateNextScheduledRun(), TV::UpdateOSDProgInfo(), TV::UpdateOSDStatus(), UpdateRadioStreams(), WelcomeDialog::updateRecordingList(), LCDProcClient::updateRecordingList(), Scheduler::UpdateRecStatus(), IdleScreen::UpdateScheduledList(), WelcomeDialog::updateScheduledList(), WelcomeDialog::updateScreen(), MusicMetadata::updateStreamList(), PlaybackBox::UpdateUILists(), PlaybackBox::UpdateUsageUI(), UpgradeArchiveDatabaseSchema(), UpgradeBrowserDatabaseSchema(), UpgradeGameDatabaseSchema(), UpgradeMusicDatabaseSchema(), UpgradeNewsDatabaseSchema(), UpgradeTVDatabaseSchema(), UPnpCDSMusic::UPnpCDSMusic(), UPnpCDSTv::UPnpCDSTv(), UPnpCDSVideo::UPnpCDSVideo(), MythContextPrivate::UPnPconnect(), MythFillDatabaseTask::UseSuggestedTime(), MythDisplayOSX::UsingVideoModes(), MythDisplayX11::UsingVideoModes(), VAAPIDevice(), MythSocket::Validate(), VideoColourSpace::VideoColourSpace(), VideoDialog::VideoDialog(), VideoDialogPrivate::VideoDialogPrivate(), VideoDisplayProfile::VideoDisplayProfile(), VideoMetadata::VideoFileHash(), VideoFilterSettings::VideoFilterSettings(), VideoListImp::VideoListImp(), VideoDialog::VideoMenu(), VideoOutWindow::VideoOutWindow(), VideoScannerThread::VideoScannerThread(), VideoSetupWizard::VideoSetupWizard(), ViewScheduled::ViewScheduled(), VolumeBase::VolumeBase(), AudioOutputOSS::VolumeInit(), AudioOutputJACK::VolumeInit(), Scheduler::WakeUpSlave(), Scheduler::WakeUpSlaves(), WasAutomaticStart(), Scheduler::WasStartedAutomatically(), WebSocketMythEvent::WebSocketMythEvent(), WelcomeDialog::WelcomeDialog(), MythDB::WriteDelayedSettings(), ZMClient::ZMClient(), ZMConsole::ZMConsole(), MythFontProperties::Zoom(), ArchiveFileSelector::~ArchiveFileSelector(), AutoExpire::~AutoExpire(), BackendConnectionManager::~BackendConnectionManager(), BrowserApi::~BrowserApi(), ChannelRecPriority::~ChannelRecPriority(), CustomEdit::~CustomEdit(), CustomPriority::~CustomPriority(), EditAlbumartDialog::~EditAlbumartDialog(), GuideGrid::~GuideGrid(), HouseKeeper::~HouseKeeper(), IdleScreen::~IdleScreen(), ImportMusicDialog::~ImportMusicDialog(), JobQueue::~JobQueue(), LCDProcClient::~LCDProcClient(), LogViewer::~LogViewer(), LyricsView::~LyricsView(), MainVisual::~MainVisual(), MediaServer::~MediaServer(), MusicPlayer::~MusicPlayer(), MythContext::~MythContext(), MythMainWindow::~MythMainWindow(), MythScreenType::~MythScreenType(), MythSystemEventHandler::~MythSystemEventHandler(), NetBase::~NetBase(), NetworkControl::~NetworkControl(), PlaybackBox::~PlaybackBox(), PlaylistEditorView::~PlaylistEditorView(), PrevRecordedList::~PrevRecordedList(), ProgFinder::~ProgFinder(), ProgLister::~ProgLister(), StatusBox::~StatusBox(), ThemeChooser::~ThemeChooser(), ThreadedFileWriter::~ThreadedFileWriter(), TV::~TV(), VideoDialogPrivate::~VideoDialogPrivate(), VideoSetupWizard::~VideoSetupWizard(), ViewScheduled::~ViewScheduled(), WebSocketMythEvent::~WebSocketMythEvent(), WelcomeDialog::~WelcomeDialog(), ZMClient::~ZMClient(), ZMEvents::~ZMEvents(), ZMLivePlayer::~ZMLivePlayer(), and ZMMiniPlayer::~ZMMiniPlayer().

◆ avcodeclock

QMutex* avcodeclock = new QMutex(QMutex::Recursive)

This global variable is used to makes certain calls to avlib threadsafe.

Definition at line 54 of file mythcorecontext.cpp.

Referenced by RingBuffer::AVFormatInitNetwork(), NuppelDecoder::CloseAVCodecAudio(), NuppelDecoder::CloseAVCodecVideo(), AvFormatDecoder::CloseCodecs(), NuppelDecoder::DecodeFrame(), AvFormatDecoder::FindStreamInfo(), AvFormatDecoder::ForceSetupAudioStream(), NuppelDecoder::GetFrame(), AvFormatDecoder::GetFrame(), AVFRingBuffer::GetRingBufferURLProtocol(), DecoderBase::GetTrackDesc(), DecoderBase::GetTracks(), NuppelDecoder::InitAVCodecAudio(), NuppelDecoder::InitAVCodecVideo(), DecoderBase::InsertTrack(), AvFormatDecoder::OpenAVCodec(), AvFormatDecoder::ProcessAudioPacket(), AvFormatDecoder::ProcessDSMCCPacket(), AvFormatDecoder::ProcessSubtitlePacket(), AvFormatDecoder::ProcessVideoPacket(), AvFormatDecoderBD::ReadPacket(), AvFormatDecoderDVD::ReadPacket(), AvFormatDecoder::ReadPacket(), RecorderBase::RecorderBase(), AvFormatDecoder::RemoveAudioStreams(), AvFormatDecoder::ScanStreams(), NuppelDecoder::SeekReset(), AvFormatDecoder::SeekReset(), DecoderBase::SetTrack(), AvFormatDecoder::SetupAudioStreamSubIndexes(), NuppelVideoRecorder::SetupAVCodecVideo(), AvFormatDecoderBD::StreamChangeCheck(), AvFormatDecoderDVD::StreamChangeCheck(), AvFormatDecoder::StreamChangeCheck(), AVFormatWriter::WriteAudioFrame(), NuppelVideoRecorder::WriteVideo(), AVFormatWriter::WriteVideoFrame(), AVFormatWriter::~AVFormatWriter(), and NuppelVideoRecorder::~NuppelVideoRecorder().