Skip to content

Commit

Permalink
[AdaptiveStream] On ResetSegment check for byterange not url
Browse files Browse the repository at this point in the history
  • Loading branch information
CastagnaIT committed Jul 10, 2023
1 parent 26662a4 commit 8f8bfba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/common/AdaptiveStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,9 @@ void AdaptiveStream::ResetSegment(const PLAYLIST::CSegment* segment)

if (segment)
{
if (!current_rep_->HasSegmentBase() && !current_rep_->HasSegmentTemplate() &&
segment->url.empty() && current_rep_->GetContainerType() != ContainerType::TS)
if (segment->HasByteRange() && !current_rep_->HasSegmentBase() &&
!current_rep_->HasSegmentTemplate() &&
current_rep_->GetContainerType() != ContainerType::TS)
{
absolute_position_ = segment->range_begin_;
}
Expand Down

0 comments on commit 8f8bfba

Please sign in to comment.