VPAAMP-737: [Xumo] Playback fails when played DASH VOD assets#1708
Open
psiva01 wants to merge 3 commits into
Open
VPAAMP-737: [Xumo] Playback fails when played DASH VOD assets#1708psiva01 wants to merge 3 commits into
psiva01 wants to merge 3 commits into
Conversation
Reason for change: If bandwidth has changed after async download job submitted & new IDX is not yet loaded (the transient window), fall back to the submission-time URL so URL and range stay paired. Signed-off-by: psiva01 <sivasubramanian.patchaiperumal@ltts.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes a DASH SegmentBase transient ABR-switch window where an async media-segment download could pair a new-profile URL with an old-profile byte range, causing incorrect byte-range fetches and downstream demux failures.
Changes:
- Add a guarded URL selection fallback in
MediaStreamContext::DownloadFragment()to keep URL and byte-range paired when bandwidth changes butIDXis still cleared/not yet reloaded. - Add clarifying comment in the MPD fragment collector about SegmentBase parallel download behavior and where the URL/range race is handled.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| MediaStreamContext.cpp | Adds a submission-time bandwidth fallback for URL lookup when IDX is empty during an ABR switch to keep URL/range consistent. |
| fragmentcollector_mpd.cpp | Adds documentation clarifying SegmentBase parallel download behavior and pointing to the race fix location. |
Comment on lines
1078
to
1081
| if (dlInfo->uriList.find(urlLookupBw) != dlInfo->uriList.end()) | ||
| { | ||
| uriInfo = dlInfo->uriList[urlLookupBw]; | ||
| } |
Comment on lines
1064
to
1068
| BitsPerSecond urlLookupBw = fragmentDescriptor.Bandwidth; | ||
| if (!dlInfo->range.empty() && | ||
| dlInfo->bandwidth > 0 && | ||
| dlInfo->bandwidth != fragmentDescriptor.Bandwidth) | ||
| { |
Signed-off-by: psiva01 <sivasubramanian.patchaiperumal@ltts.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reason for change: If bandwidth has changed after async download job submitted & new IDX is not yet loaded (the transient window), fall back to the submission-time URL so URL and range stay paired.