Skip to content

Bringup VPAAMP-245: Negative Latency value logged while HLS linear pl…#1497

Merged
pstroffolino merged 1 commit into
dev_sprint_25_2from
feature/VPAAMP-245_bringback
May 24, 2026
Merged

Bringup VPAAMP-245: Negative Latency value logged while HLS linear pl…#1497
pstroffolino merged 1 commit into
dev_sprint_25_2from
feature/VPAAMP-245_bringback

Conversation

@psiva01
Copy link
Copy Markdown
Contributor

@psiva01 psiva01 commented May 21, 2026

…ayback (…" (#1496)"

This reverts commit 1bfaaa2.

@psiva01 psiva01 requested a review from a team as a code owner May 21, 2026 17:28
Copy link
Copy Markdown
Contributor

@Vinish100 Vinish100 left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates PrivateInstanceAAMP::MonitorProgress() to prevent negative live-latency values during TSB-less linear HLS playback by deferring the start/end = -1 (XRE sentinel) assignment until after HLS latency is computed, and adds a unit regression test to guard against recurrence.

Changes:

  • Move the TSB-less linear start/end = -1 override to after live latency calculation in MonitorProgress().
  • Add a regression unit test validating GetCurrentLatencyMs() is never negative for TSB-less linear HLS playback.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
priv_aamp.cpp Reorders the TSB-less sentinel assignment to avoid corrupting HLS live latency computation.
test/utests/tests/PrivAampTests/PrivAampTests.cpp Adds a regression test asserting live latency is non-negative for the affected scenario.

Comment thread priv_aamp.cpp
Comment on lines +2724 to +2727
// If TSB is not available for linear playback, send -1 for start and end
// so that XRE detects this as TSB-less playback.
// Override the above logic when mEnableSeekableRange is set for third-party apps.
if (!ISCONFIGSET_PRIV(eAAMPConfig_EnableSeekRange) && (mContentType == ContentType_LINEAR && !mFogTSBEnabled && !IsLocalAAMPTsb()))
Comment on lines +1709 to +1712
/**
* @brief Regression test for Positive Live latency value.
*
* Verifies that live latency is never negative during TSB-less linear HLS
@pstroffolino pstroffolino merged commit c44486b into dev_sprint_25_2 May 24, 2026
14 checks passed
@pstroffolino pstroffolino deleted the feature/VPAAMP-245_bringback branch May 24, 2026 02:35
psiva01 added a commit that referenced this pull request May 26, 2026
……" (#1496)" (#1497)

Reason for Change: Updates PrivateInstanceAAMP::MonitorProgress() to prevent negative
live-latency values during TSB-less linear HLS playback by deferring the start/end = -1
(XRE sentinel) assignment until after HLS latency is computed, and adds a unit regression
test to guard against recurrence.
Changes:
Move the TSB-less linear start/end = -1 override to after live latency calculation in MonitorProgress().
Add a regression unit test validating GetCurrentLatencyMs() is never negative for TSB-less linear HLS playback.
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.

4 participants