Skip to content

Commit

Permalink
[DASH] xchange location_ between base and update tree
Browse files Browse the repository at this point in the history
  • Loading branch information
peak3d committed Aug 23, 2019
1 parent 26c153a commit c674d48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parser/DASHTree.cpp
Expand Up @@ -1436,6 +1436,9 @@ void DASHTree::RefreshSegments()
updateTree.manifest_headers_ = manifest_headers_;
updateTree.base_time_ = base_time_;
updateTree.supportedKeySystem_ = supportedKeySystem_;
//Location element should be used on updates
updateTree.location_ = location_;

if (!~update_parameter_pos_)
{
if (!etag_.empty())
Expand All @@ -1448,6 +1451,7 @@ void DASHTree::RefreshSegments()
{
etag_ = updateTree.etag_;
last_modified_ = updateTree.last_modified_;
location_ = updateTree.location_;

//Youtube returns last smallest number in case the requested data is not available
if (~update_parameter_pos_ && updateTree.firstStartNumber_ < nextStartNumber)
Expand Down

0 comments on commit c674d48

Please sign in to comment.