Fixed Windows-based live streams

This commit is contained in:
Thulinma 2017-11-29 14:51:17 +01:00
parent a07c8ef02e
commit f32ab1d26d

View file

@ -251,7 +251,8 @@ namespace Mist {
//Re-init streamStatus, previously closed //Re-init streamStatus, previously closed
char pageName[NAME_BUFFER_SIZE]; char pageName[NAME_BUFFER_SIZE];
snprintf(pageName, NAME_BUFFER_SIZE, SHM_STREAM_STATE, streamName.c_str()); snprintf(pageName, NAME_BUFFER_SIZE, SHM_STREAM_STATE, streamName.c_str());
streamStatus.init(pageName, 1, false, false); streamStatus.init(pageName, 1, true, false);
streamStatus.master = false;
if (streamStatus){streamStatus.mapped[0] = STRMSTAT_INIT;} if (streamStatus){streamStatus.mapped[0] = STRMSTAT_INIT;}
if (needsLock()){playerLock.close();} if (needsLock()){playerLock.close();}
if (!preRun()){return 0;} if (!preRun()){return 0;}