Various fixes for live streams.

This commit is contained in:
Thulinma 2014-12-21 13:50:08 +01:00
parent cc4539c4da
commit 142ef73f6c
3 changed files with 69 additions and 51 deletions

View file

@ -86,7 +86,7 @@ namespace Controller {
configLock.wait();
//write config
std::string temp = writeConf.toPacked();
memcpy(mistConfOut.mapped, temp.data(), std::min(temp.size(), (unsigned long)mistConfOut.len));
memcpy(mistConfOut.mapped, temp.data(), std::min(temp.size(), (size_t)mistConfOut.len));
//unlock semaphore
configLock.post();
}