Skip to content

Feature/vpaamp 899 - #1809

Open
Gnanesha wants to merge 2 commits into
dev_sprint_25_2from
feature/VPAAMP-899
Open

Feature/vpaamp 899#1809
Gnanesha wants to merge 2 commits into
dev_sprint_25_2from
feature/VPAAMP-899

Conversation

@Gnanesha

Copy link
Copy Markdown
Contributor

No description provided.

Gnanesha added 2 commits July 30, 2026 23:26
…on in LL‑DASH Mode leading to stall in playback

Reason for change: check against floating point precision
Risks: Low
Test Procedure: Test with MPD streams with ads
Priority: P1
…on in LL‑DASH Mode leading to stall in playback

Reason for change: check against floating point precision
Risks: Low
Test Procedure: Test with MPD streams with ads
Priority: P1
@Gnanesha
Gnanesha requested a review from a team as a code owner July 31, 2026 03:30
@Gnanesha
Gnanesha requested a review from Copilot July 31, 2026 03:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts discontinuity-handling logic in MediaTrack::CheckForDiscontinuity() by avoiding an exact floating-point comparison when checking whether any duration has been injected, and also changes the log level used when a discontinuity is detected.

Changes:

  • Introduces an epsilon constant and switches the injectedDuration == 0 check to std::fabs(injectedDuration) < EPS.
  • Promotes a discontinuity log from AAMPLOG_TRACE to AAMPLOG_INFO.

Comment thread streamabstraction.cpp
bool stopInjection = false;
StreamAbstractionAAMP* context = GetContext();
double injectedDuration = GetTotalInjectedDuration();
static constexpr double EPS = 0.01; // floating point comparison tolerance.
Comment thread streamabstraction.cpp
{
bool isDiscoIgnoredForOtherTrack = aamp->IsDiscontinuityIgnoredForOtherTrack((AampMediaType)!type);
AAMPLOG_TRACE("track %s - encountered aamp discontinuity @position - %f, isDiscoIgnoredForOtherTrack - %d ptsError %d", name, cachedFragment->position, isDiscoIgnoredForOtherTrack,ptsError );
AAMPLOG_INFO("track %s - encountered aamp discontinuity @position - %f, isDiscoIgnoredForOtherTrack - %d ptsError %d", name, cachedFragment->position, isDiscoIgnoredForOtherTrack,ptsError );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants