-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DASHTree] stop waiting when new period appears to fix stalls during playback #1541
Conversation
if (repr->IsWaitForSegment() && | ||
period->GetId() != m_periods.back()->GetId()) | ||
{ | ||
repr->SetIsWaitForSegment(false); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you havent provide any explanation nor manifests that explain why this is needed
when there are no segments you must not remove the "wait for segments"
the demuxer callbacks must be kept stopped
if (repr->IsWaitForSegment() && (repr->get_next_segment(repr->current_segment_))) | ||
if (repr->IsWaitForSegment() && | ||
(repr->get_next_segment(repr->current_segment_) || | ||
period->GetId() != m_periods.back()->GetId())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this addition is not clear
period->GetId() != m_periods.back()->GetId()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would have a way to replicate this, since the changes are not clear
and the root of cause may be elsewhere
if a new period appears, it should trigger the last segment check on AdaptiveStream when the current one is ending
if this dont happens can suggest some other problem, for example is missing to be updated the period duration
closed since atm these changes are not so clear |
Was discussed in detail during initial implementation. https://teamkodi.slack.com/archives/C0U5RMJSD/p1677448422522129 |
on that discussion you are talking about test stream this one has been already tested on Omega over last recent changes, https://paste.kodi.tv/uhejasiquq.kodi manifest_1716875099.txt
and segment downloaded from switched period starts with the right numeration
so your live stream looks to be different than this test stream |
Description
fixes #1540
cc #1175
Motivation and context
How has this been tested?
tested on stream and confirmed no more stalls
Screenshots (if appropriate):
Types of change
Checklist: