Fixed support for VoD assets with a > 8MiB header size
This commit is contained in:
parent
6816b6074c
commit
7afd3415b3
2 changed files with 7 additions and 2 deletions
|
@ -1481,8 +1481,9 @@ namespace DTSC {
|
||||||
if (type == "") {
|
if (type == "") {
|
||||||
result << "metadata_" << trackID;
|
result << "metadata_" << trackID;
|
||||||
return result.str();
|
return result.str();
|
||||||
}
|
}else{
|
||||||
result << type << "_";
|
result << type << "_";
|
||||||
|
}
|
||||||
result << codec << "_";
|
result << codec << "_";
|
||||||
if (type == "audio") {
|
if (type == "audio") {
|
||||||
result << channels << "ch_";
|
result << channels << "ch_";
|
||||||
|
|
|
@ -16,7 +16,11 @@ namespace Mist {
|
||||||
//Open the page for the metadata
|
//Open the page for the metadata
|
||||||
char pageName[NAME_BUFFER_SIZE];
|
char pageName[NAME_BUFFER_SIZE];
|
||||||
snprintf(pageName, NAME_BUFFER_SIZE, SHM_STREAM_INDEX, streamName.c_str());
|
snprintf(pageName, NAME_BUFFER_SIZE, SHM_STREAM_INDEX, streamName.c_str());
|
||||||
|
if (myMeta.live){
|
||||||
nProxy.metaPages[0].init(pageName, DEFAULT_STRM_PAGE_SIZE, true);
|
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
|
//Make sure we don't delete it on accident
|
||||||
nProxy.metaPages[0].master = false;
|
nProxy.metaPages[0].master = false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue