From f86476153e322adbbad4e0f020b14f513a5e0316 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 14 Apr 2015 17:33:30 +0200 Subject: [PATCH] Fixed live semaphore problems. --- src/input/input_buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/input_buffer.cpp b/src/input/input_buffer.cpp index a97d3f36..a06dbda2 100644 --- a/src/input/input_buffer.cpp +++ b/src/input/input_buffer.cpp @@ -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) {