Skip to content

VPAAMP-959:[MP4DEMUX]Use codec info from the manifest rather than laz… - #228

Open
varshnie wants to merge 1 commit into
developfrom
feature/VPAAMP-959_PI
Open

VPAAMP-959:[MP4DEMUX]Use codec info from the manifest rather than laz…#228
varshnie wants to merge 1 commit into
developfrom
feature/VPAAMP-959_PI

Conversation

@varshnie

Copy link
Copy Markdown

…y caps setting in mp4demux

Reason for change:Use codec info from the manifest rather than lazy caps setting in mp4demux Risks: p1

Copilot AI lite review requested due to automatic review settings August 25, 2026 09:33
@varshnie
varshnie requested a review from a team as a code owner August 25, 2026 09:33

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 updates the GStreamer appsrc source configuration so that, when DRM protection data is already queued, the appsrc caps are rewritten to encrypted (application/x-cenc) caps up-front (instead of relying on later/lazy caps behavior), aligning better with using manifest-derived codec/encryption information.

Changes:

  • Detect queued DRM protection events during InitializeSourceForPlayer() and decide whether encrypted caps should be applied.
  • When applicable, mutate caps by setting original-media-type, optionally setting GST_PROTECTION_SYSTEM_ID_CAPS_FIELD, and renaming the caps to application/x-cenc.
  • Add logging to help trace when encrypted caps are applied during source configuration.

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

Comment thread InterfacePlayerRDK.cpp Outdated
Comment thread InterfacePlayerRDK.cpp Outdated
Comment thread InterfacePlayerRDK.cpp Outdated
Comment thread InterfacePlayerRDK.cpp Outdated
Comment thread InterfacePlayerRDK.cpp Outdated
Copilot AI review requested due to automatic review settings August 31, 2026 09:19
@varshnie
varshnie force-pushed the feature/VPAAMP-959_PI branch from 7a8b607 to c60e195 Compare August 31, 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.

Pull request overview

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

Comment thread InterfacePlayerRDK.cpp
Comment thread InterfacePlayerRDK.h
@varshnie
varshnie force-pushed the feature/VPAAMP-959_PI branch from c60e195 to 365183f Compare August 31, 2026 10:48
Copilot AI review requested due to automatic review settings August 31, 2026 10:48

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread InterfacePlayerRDK.cpp Outdated
Copilot AI review requested due to automatic review settings August 31, 2026 11:02
@varshnie
varshnie force-pushed the feature/VPAAMP-959_PI branch from 365183f to bf1fcaa Compare August 31, 2026 11:02

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Suppressed comments (1)

test/utests/tests/InterfacePlayerTests/InterfacePlayerFunctionTests.cpp:843

  • After deleting the global g_mockGstUtils, the pointer is left dangling. Because FakeGstUtils checks only for non-null before dispatching, any later call to GetCaps/CreateGstBufferWithData would become a use-after-free and can make tests flaky.
	delete g_mockGstUtils;

Copilot AI review requested due to automatic review settings August 31, 2026 11:28
@varshnie
varshnie force-pushed the feature/VPAAMP-959_PI branch from bf1fcaa to abd3d2e Compare August 31, 2026 11:28

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread InterfacePlayerRDK.cpp
…y caps setting in mp4demux

Reason for change:Use codec info from the manifest rather than lazy caps setting in mp4demux
Risks: p1

Signed-off-by: varshnie <varshniblue14@gmail.com>
@varshnie
varshnie force-pushed the feature/VPAAMP-959_PI branch from abd3d2e to 03084d0 Compare September 3, 2026 06:49
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