Skip to content

Commit

Permalink
[DASH] Fix youtube live with multiple subs
Browse files Browse the repository at this point in the history
  • Loading branch information
peak3d committed May 29, 2020
1 parent d06ee54 commit df59ba5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/parser/DASHTree.cpp
Expand Up @@ -1499,7 +1499,8 @@ void DASHTree::RefreshLiveSegments()
if (replaceable < numReplace)
numReplace = replaceable;
}
Log(LOGLEVEL_DEBUG, "DASH Update: numReplace: %u", numReplace);
Log(LOGLEVEL_DEBUG, "DASH Update: numReplace: %u, nextStartNumber: %u", numReplace,
nextStartNumber);
replaced = update_parameter_;
char buf[32];
sprintf(buf, "%u", nextStartNumber);
Expand Down Expand Up @@ -1540,7 +1541,12 @@ void DASHTree::RefreshLiveSegments()
{
//Locate adaptationset
std::vector<AdaptationSet*>::const_iterator bad((*bpd)->adaptationSets_.begin()), ead((*bpd)->adaptationSets_.end());
for (; bad != ead && ((*bad)->id_ != (*ba)->id_ || (*bad)->group_ != (*ba)->group_ || (*bad)->type_ != (*ba)->type_); ++bad);
for (; bad != ead &&
((*bad)->id_ != (*ba)->id_ || (*bad)->group_ != (*ba)->group_ ||
(*bad)->type_ != (*ba)->type_ || (*bad)->mimeType_ != (*ba)->mimeType_ ||
(*bad)->language_ != (*ba)->language_);
++bad)
;
if (bad != ead)
{
for (std::vector<Representation*>::iterator br((*ba)->representations_.begin()), er((*ba)->representations_.end()); br != er; ++br)
Expand Down

0 comments on commit df59ba5

Please sign in to comment.