Merge branch 'development' into LTS_development
This commit is contained in:
commit
c9bb214ab9
2 changed files with 4 additions and 5 deletions
|
@ -460,10 +460,6 @@ namespace IPC {
|
|||
return;
|
||||
}
|
||||
if (master) {
|
||||
if (ftruncate(handle, 0) < 0) {
|
||||
FAIL_MSG("truncate to zero for page %s failed: %s", name.c_str(), strerror(errno));
|
||||
return;
|
||||
}
|
||||
if (ftruncate(handle, len) < 0) {
|
||||
FAIL_MSG("truncate to %lld for page %s failed: %s", len, name.c_str(), strerror(errno));
|
||||
return;
|
||||
|
@ -475,6 +471,10 @@ namespace IPC {
|
|||
return;
|
||||
}
|
||||
len = buffStats.st_size;
|
||||
if (!len){
|
||||
mapped = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
mapped = (char *)mmap(0, len, PROT_READ | PROT_WRITE, MAP_SHARED, handle, 0);
|
||||
if (mapped == MAP_FAILED) {
|
||||
|
|
|
@ -610,7 +610,6 @@ namespace Mist{
|
|||
}
|
||||
if (amfData.getContentP(0)->StrValue() == "deleteStream"){
|
||||
stop();
|
||||
onFinish();
|
||||
return;
|
||||
}
|
||||
if ((amfData.getContentP(0)->StrValue() == "FCUnpublish") || (amfData.getContentP(0)->StrValue() == "releaseStream")){
|
||||
|
|
Loading…
Add table
Reference in a new issue