Skip to content

Update GstDecryptor.cpp#468

Open
varatharajan568 wants to merge 3 commits intomasterfrom
feature/DELIA-70176
Open

Update GstDecryptor.cpp#468
varatharajan568 wants to merge 3 commits intomasterfrom
feature/DELIA-70176

Conversation

@varatharajan568
Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings March 27, 2026 01:26
@github-actions
Copy link
Copy Markdown

Pull request must be merged with a description containing the required fields,

Summary:
Type: Feature/Fix/Cleanup
Test Plan:
Jira:

If there is no jira releated to this change, please put 'Jira: NO-JIRA'.

Description can be changed by editing the top comment on your pull request and making a new commit.

Copy link
Copy Markdown

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

This PR adds a runtime debug print in the GStreamer decryptor path to surface when decrypt() is called and with which parameters.

Changes:

  • Added a printf statement in GstRialtoDecryptorPrivate::decrypt() to log keySessionId, buffer, and caps pointers before calling m_decryptionService->decrypt().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}
else
{
printf("VRN decrypt called with keySessionId=%s, buffer=%p, caps=%p\n", protectionData->keySessionId.c_str(), buffer, caps);
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

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

The added printf logs on every decrypt call (hot path, per-buffer) directly to stdout, which can significantly impact performance and operational logging (unstructured output, hard to filter/route) and may leak DRM/session identifiers (keySessionId). Please remove this, or switch to the existing logging system (e.g., GST_TRACE_OBJECT/GST_DEBUG_OBJECT or RIALTO_SERVER_LOG_DEBUG) and ensure any session identifiers are either omitted, redacted, or only logged under an explicit debug flag.

Suggested change
printf("VRN decrypt called with keySessionId=%s, buffer=%p, caps=%p\n", protectionData->keySessionId.c_str(), buffer, caps);
GST_TRACE_OBJECT(self, "VRN decrypt called (buffer=%p, caps=%p)", buffer, caps);

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings March 27, 2026 01:27
Copy link
Copy Markdown

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown

Coverage statistics of your commit:
Lines coverage stays unchanged and is: 84.4%
Functions coverage stays unchanged and is: 92.5%

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