Converted previously hardcoded default sizes for shared memory pages to defines.
This commit is contained in:
parent
e34d7407a6
commit
4e535799af
2 changed files with 13 additions and 1 deletions
|
@ -71,7 +71,7 @@ void Util::sanitizeName(std::string & streamname) {
|
|||
|
||||
/// Starts a process for a VoD stream.
|
||||
bool Util::startInput(std::string streamname, std::string filename, bool forkFirst) {
|
||||
IPC::sharedPage mistConfOut("!mistConfig", 4*1024*1024);
|
||||
IPC::sharedPage mistConfOut("!mistConfig", DEFAULT_CONF_PAGE_SIZE);
|
||||
IPC::semaphore configLock("!mistConfLock", O_CREAT | O_RDWR, ACCESSPERMS, 1);
|
||||
configLock.wait();
|
||||
DTSC::Scan config = DTSC::Scan(mistConfOut.mapped, mistConfOut.len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue