Fixed support for VoD assets with a > 8MiB header size

This commit is contained in:
Thulinma 2016-07-26 13:57:24 +02:00
parent 6816b6074c
commit 7afd3415b3
2 changed files with 7 additions and 2 deletions

View file

@ -16,7 +16,11 @@ namespace Mist {
//Open the page for the metadata
char pageName[NAME_BUFFER_SIZE];
snprintf(pageName, NAME_BUFFER_SIZE, SHM_STREAM_INDEX, streamName.c_str());
nProxy.metaPages[0].init(pageName, DEFAULT_STRM_PAGE_SIZE, true);
if (myMeta.live){
nProxy.metaPages[0].init(pageName, DEFAULT_STRM_PAGE_SIZE, true);
}else{
nProxy.metaPages[0].init(pageName, myMeta.getSendLen(), true);
}
//Make sure we don't delete it on accident
nProxy.metaPages[0].master = false;