Memory optimizations and supporting code for libmist changes.
This commit is contained in:
parent
6ade063756
commit
8e3d636381
9 changed files with 15 additions and 12 deletions
|
@ -56,10 +56,10 @@ namespace Mist {
|
|||
void Output::updateMeta(){
|
||||
//read metadata from page to myMeta variable
|
||||
if (streamIndex.mapped){
|
||||
JSON::Value jsonMeta;
|
||||
unsigned int i = 0;
|
||||
JSON::fromDTMI((const unsigned char*)streamIndex.mapped + 8, streamIndex.len - 8, i, jsonMeta);
|
||||
myMeta = DTSC::Meta(jsonMeta);
|
||||
DTSC::Packet tmpMeta(streamIndex.mapped, streamIndex.len, true);
|
||||
if (tmpMeta){
|
||||
myMeta.reinit(tmpMeta);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue