Added a define for live stream latency
This commit is contained in:
parent
2f477a4ef9
commit
791fc5eae9
2 changed files with 4 additions and 1 deletions
|
@ -121,6 +121,9 @@ static inline void show_stackframe(){}
|
|||
/// Does not affect live streams.
|
||||
#define FLIP_MIN_DURATION 20000
|
||||
|
||||
/// Interval where the input refreshes the user data for stats etc.
|
||||
#define INPUT_USER_INTERVAL 1000
|
||||
|
||||
#define SHM_STREAM_INDEX "MstSTRM%s" //%s stream name
|
||||
#define SHM_STREAM_STATE "MstSTATE%s" //%s stream name
|
||||
#define STRMSTAT_OFF 0
|
||||
|
|
|
@ -309,7 +309,7 @@ namespace Mist {
|
|||
INSANE_MSG("Connected: %d users, %d total", userPage.connectedUsers, userPage.amount);
|
||||
//if not shutting down, wait 1 second before looping
|
||||
if (config->is_active){
|
||||
Util::wait(1000);
|
||||
Util::wait(INPUT_USER_INTERVAL);
|
||||
}
|
||||
}
|
||||
if (streamStatus){streamStatus.mapped[0] = STRMSTAT_SHUTDOWN;}
|
||||
|
|
Loading…
Add table
Reference in a new issue