Memory optimizations and supporting code for libmist changes.

This commit is contained in:
Thulinma 2014-05-11 14:37:35 +02:00
parent 6ade063756
commit 8e3d636381
9 changed files with 15 additions and 12 deletions

View file

@ -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);
}
}
}