Skip to content

VPAAMP-1031 HDMI hot plug - #1944

Draft
DomSyna wants to merge 3 commits into
feature/VPLAY-12902from
feature/VPLAY-12902_VPAAMP-1031_HDMI_HotPlug
Draft

VPAAMP-1031 HDMI hot plug#1944
DomSyna wants to merge 3 commits into
feature/VPLAY-12902from
feature/VPLAY-12902_VPAAMP-1031_HDMI_HotPlug

Conversation

@DomSyna

@DomSyna DomSyna commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Fix DECRYPTION/OUTPUT_PROTECTION classification in direct-rialto OnPlaybackError

Rialto's GstDecryptor::decrypt() returns early for OUTPUT_RESTRICTED (HDCP) before ever posting the GST_STREAM_ERROR_DECRYPT warning that becomes PlaybackError::DECRYPTION - confirmed by the Rialto team and verified in GstDecryptor.cpp. DECRYPTION is therefore only ever posted for a genuine, non-HDCP decrypt failure and must still be escalated.

OUTPUT_PROTECTION fires exactly once, at the moment HDCP recovers, and escalating it previously put AAMP into eSTATE_ERROR + DisableDownloads()/NotifyInjectorToPause() right as playback was recovering from an HDMI unplug, with no automatic way back - the actual root cause of the reported "stuck until physical replug" bug.

@DomSyna
DomSyna changed the base branch from dev_sprint_25_2 to feature/VPLAY-12902 September 2, 2026 09:19

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.

🟢 Approval recommended

The behavior change is narrowly scoped, matches the stated intent (suppress non-fatal OUTPUT_PROTECTION escalation), and is covered by an updated L1 test for the mapping/dispatch.

Pull request overview

Adjusts direct-rialto handling of Rialto playback errors so HDMI/HDCP recovery (OUTPUT_PROTECTION) is treated as non-fatal and no longer escalated into an AAMP tune-failure path that can stall recovery after hot-plug events.

Changes:

  • Suppress escalation for PlaybackError::OUTPUT_PROTECTION in AampRialtoPlayer::OnPlaybackError() (log-only behavior).
  • Update the existing L1 test to assert that OUTPUT_PROTECTION does not trigger NotifyPlaybackError().
File summaries
File Description
direct-rialto/AampRialtoPlayer.cpp Stops mapping OUTPUT_PROTECTION to an AAMP tune failure; logs the event instead.
test/utests/tests/AampRialtoPlayerTests/AampRialtoPlayerTestCases.cpp Updates the unit test expectation to ensure OUTPUT_PROTECTION is suppressed (no NotifyPlaybackError).
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +2778 to +2779
AAMPLOG_WARN("%s - non-fatal, not escalating to tune failure",
errorDesc.c_str());
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