Fix for Cygwin input crashes
This commit is contained in:
parent
41ec2822b1
commit
6c4cea3954
1 changed files with 5 additions and 0 deletions
|
@ -124,6 +124,11 @@ namespace Mist {
|
|||
while (config->is_active){
|
||||
pid_t pid = fork();
|
||||
if (pid == 0){
|
||||
//Re-init streamStatus to fix Cygwin issues
|
||||
char pageName[NAME_BUFFER_SIZE];
|
||||
snprintf(pageName, NAME_BUFFER_SIZE, SHM_STREAM_STATE, streamName.c_str());
|
||||
streamStatus.init(pageName, 1, false, false);
|
||||
if (streamStatus){streamStatus.mapped[0] = STRMSTAT_INIT;}
|
||||
if (needsLock()){playerLock.close();}
|
||||
if (!preRun()){return 0;}
|
||||
return run();
|
||||
|
|
Loading…
Add table
Reference in a new issue