Added support for local variables in MistIn processes, stored in the DTSH header.
This commit is contained in:
parent
fe7cee8666
commit
7f770b27b7
2 changed files with 7 additions and 0 deletions
|
@ -394,6 +394,7 @@ namespace DTSC {
|
||||||
long long int bufferWindow;
|
long long int bufferWindow;
|
||||||
int64_t bootMsOffset;///< Millis to add to packet timestamps to get millis since system boot.
|
int64_t bootMsOffset;///< Millis to add to packet timestamps to get millis since system boot.
|
||||||
std::string sourceURI;
|
std::string sourceURI;
|
||||||
|
JSON::Value inputLocalVars;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// An iterator helper for easily iterating over the parts in a Fragment.
|
/// An iterator helper for easily iterating over the parts in a Fragment.
|
||||||
|
|
|
@ -1491,6 +1491,9 @@ namespace DTSC {
|
||||||
moreheader = source.getInt("moreheader");
|
moreheader = source.getInt("moreheader");
|
||||||
bootMsOffset = source.getInt("bootoffset");
|
bootMsOffset = source.getInt("bootoffset");
|
||||||
source.getString("source", sourceURI);
|
source.getString("source", sourceURI);
|
||||||
|
if (source.getScan().hasMember("inputlocalvars")){
|
||||||
|
inputLocalVars = source.getScan().getMember("inputlocalvars").asJSON();
|
||||||
|
}
|
||||||
Scan tmpTracks = source.getScan().getMember("tracks");
|
Scan tmpTracks = source.getScan().getMember("tracks");
|
||||||
unsigned int num = 0;
|
unsigned int num = 0;
|
||||||
Scan tmpTrack;
|
Scan tmpTrack;
|
||||||
|
@ -2168,6 +2171,9 @@ namespace DTSC {
|
||||||
result["source"] = sourceURI;
|
result["source"] = sourceURI;
|
||||||
}
|
}
|
||||||
result["moreheader"] = moreheader;
|
result["moreheader"] = moreheader;
|
||||||
|
if (inputLocalVars){
|
||||||
|
result["inputlocalvars"] = inputLocalVars;
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue