((ControlRunningManager *)RunningManager::getManager())->ShutdownControl();
ControlRunningManager *manager=(ControlRunningManager *)RunningManager::getManager(); if (manager) ((ControlRunningManager *)RunningManager::getManager())->ShutdownControl();
Control::~Control() {   // Hide shall only be called from main thread, but we are in main thread because   // cControl objects are always deleted by VDR from main thread.   Hide();   // Do not call Stop() directly, there may be a race condition since Stop() may be called from any thread.   // ShutdownControl() calls Stop(), is thread safe and cleanly sets the status for RunningManager.   ((ControlRunningManager *)RunningManager::getManager())->ShutdownControl();}