mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
femanager: allow starting without frontend (for testing)
This commit is contained in:
@@ -114,6 +114,14 @@ bool CFEManager::Init()
|
||||
dmap.push_back(CFeDmx(i));
|
||||
|
||||
INFO("found %d frontends, %d demuxes\n", (int)femap.size(), (int)dmap.size());
|
||||
/* for testing without a frontend, export SIMULATE_FE=1 */
|
||||
if (femap.empty() && getenv("SIMULATE_FE")) {
|
||||
INFO("SIMULATE_FE is set, adding dummy frontend for testing");
|
||||
fe = new CFrontend(0,0);
|
||||
fekey = MAKE_FE_KEY(0, 0);
|
||||
femap.insert(std::pair <unsigned short, CFrontend*> (fekey, fe));
|
||||
livefe = fe;
|
||||
}
|
||||
if (femap.empty())
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user