Merge branch 'development' into LTS_development
# Conflicts: # lib/stream.cpp # src/input/input.cpp
This commit is contained in:
commit
0ca63d1440
6 changed files with 27 additions and 0 deletions
|
@ -472,3 +472,11 @@ static std::string strftime_now(const std::string& format) {
|
|||
return buffer;
|
||||
}
|
||||
|
||||
uint8_t Util::getStreamStatus(std::string & streamname){
|
||||
char pageName[NAME_BUFFER_SIZE];
|
||||
snprintf(pageName, NAME_BUFFER_SIZE, SHM_STREAM_STATE, streamname.c_str());
|
||||
IPC::sharedPage streamStatus(pageName, 1, false, false);
|
||||
if (!streamStatus){return STRMSTAT_OFF;}
|
||||
return streamStatus.mapped[0];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue