Various HTTP Dynamic Streaming fixes.
This commit is contained in:
parent
10ce807f6f
commit
cfbc882641
2 changed files with 7 additions and 4 deletions
|
@ -54,12 +54,14 @@ namespace Mist {
|
|||
}
|
||||
|
||||
void Output::updateMeta(){
|
||||
unsigned int i = 0;
|
||||
//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);
|
||||
}
|
||||
}
|
||||
|
||||
/// Called when stream initialization has failed.
|
||||
/// The standard implementation will set isInitialized to false and close the client connection,
|
||||
|
|
|
@ -162,6 +162,7 @@ namespace Mist {
|
|||
if (HTTP_R.url.find(".abst") != std::string::npos){
|
||||
myConn.setHost(HTTP_R.GetHeader("X-Origin"));
|
||||
streamName = HTTP_R.GetHeader("X-Stream");
|
||||
initialize();
|
||||
std::string streamID = HTTP_R.url.substr(streamName.size() + 10);
|
||||
streamID = streamID.substr(0, streamID.find(".abst"));
|
||||
HTTP_S.Clean();
|
||||
|
|
Loading…
Add table
Reference in a new issue