Fixed folder support
This commit is contained in:
parent
514f0a9b2b
commit
d296ac60bb
2 changed files with 10 additions and 3 deletions
|
@ -253,8 +253,13 @@ install(
|
|||
# MistServer - Inputs #
|
||||
########################################
|
||||
macro(makeInput inputName format)
|
||||
if (";${ARGN};" MATCHES ";folder;")
|
||||
set(mainScript src/input/mist_in_folder.cpp)
|
||||
else()
|
||||
set(mainScript src/input/mist_in.cpp)
|
||||
endif()
|
||||
add_executable(MistIn${inputName}
|
||||
src/input/mist_in.cpp
|
||||
${mainScript}
|
||||
src/input/input.cpp
|
||||
src/input/input_${format}.cpp
|
||||
src/io.cpp
|
||||
|
@ -279,7 +284,7 @@ makeInput(Buffer buffer)
|
|||
makeInput(ISMV ismv)#LTS
|
||||
makeInput(MP4 mp4)#LTS
|
||||
makeInput(TS ts)#LTS
|
||||
makeInput(Folder folder)#LTS
|
||||
makeInput(Folder folder folder)#LTS
|
||||
|
||||
########################################
|
||||
# MistServer - Outputs #
|
||||
|
|
|
@ -271,7 +271,9 @@ namespace Mist {
|
|||
configLock.post();
|
||||
//Stream metadata not found - attempt to start it
|
||||
if (Util::startInput(streamName)){
|
||||
streamIndex.init(streamName, DEFAULT_META_PAGE_SIZE);
|
||||
char streamPageName[NAME_BUFFER_SIZE];
|
||||
snprintf(streamPageName, NAME_BUFFER_SIZE, SHM_STREAM_INDEX, streamName.c_str());
|
||||
streamIndex.init(streamPageName, DEFAULT_META_PAGE_SIZE);
|
||||
if (streamIndex.mapped){
|
||||
metaLock = true;
|
||||
metaLocker.wait();
|
||||
|
|
Loading…
Add table
Reference in a new issue