diff --git a/lib/dtsc.h b/lib/dtsc.h index cf832493..bede047e 100644 --- a/lib/dtsc.h +++ b/lib/dtsc.h @@ -367,6 +367,7 @@ namespace DTSC { long long int bufferWindow; int64_t bootMsOffset;///< Millis to add to packet timestamps to get millis since system boot. std::string sourceURI; + JSON::Value inputLocalVars; }; /// An iterator helper for easily iterating over the parts in a Fragment. diff --git a/lib/dtscmeta.cpp b/lib/dtscmeta.cpp index 9b196f50..8be3f3e2 100644 --- a/lib/dtscmeta.cpp +++ b/lib/dtscmeta.cpp @@ -1437,6 +1437,9 @@ namespace DTSC { moreheader = source.getInt("moreheader"); bootMsOffset = source.getInt("bootoffset"); source.getString("source", sourceURI); + if (source.getScan().hasMember("inputlocalvars")){ + inputLocalVars = source.getScan().getMember("inputlocalvars").asJSON(); + } Scan tmpTracks = source.getScan().getMember("tracks"); unsigned int num = 0; Scan tmpTrack; @@ -2075,6 +2078,9 @@ namespace DTSC { result["source"] = sourceURI; } result["moreheader"] = moreheader; + if (inputLocalVars){ + result["inputlocalvars"] = inputLocalVars; + } return result; }