Fixed live semaphore problems.

This commit is contained in:
Thulinma 2015-04-14 17:33:30 +02:00
parent 69cf17d01d
commit f86476153e

View file

@ -68,7 +68,7 @@ namespace Mist {
myMeta.vod = false;
myMeta.live = true;
static char liveSemName[NAME_BUFFER_SIZE];
snprintf(liveSemName, NAME_BUFFER_SIZE, SHM_STREAM_INDEX, config->getString("streamname").c_str());
snprintf(liveSemName, NAME_BUFFER_SIZE, SEM_LIVE, config->getString("streamname").c_str());
IPC::semaphore liveMeta(liveSemName, O_CREAT | O_RDWR, ACCESSPERMS, 1);
liveMeta.wait();
if (!metaPages.count(0) || !metaPages[0].mapped) {