Skip to content

Test prints to check playback issue#464

Open
deepthi-ps wants to merge 3 commits intomasterfrom
feature/RDKMVE-1817
Open

Test prints to check playback issue#464
deepthi-ps wants to merge 3 commits intomasterfrom
feature/RDKMVE-1817

Conversation

@deepthi-ps
Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings March 18, 2026 17:54
@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 additional diagnostic logging and pipeline flush event emission to help investigate a playback/teardown issue in the media server.

Changes:

  • Add a WARN log when deferring DRM key session release due to a non-zero refCounter.
  • Send GStreamer flush-start/flush-stop events in GstGenericPlayer::termPipeline() immediately before stopping the pipeline.

Reviewed changes

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

File Description
media/server/service/source/CdmService.cpp Adds extra WARN logging when key session release is deferred.
media/server/gstplayer/source/GstGenericPlayer.cpp Sends flush events prior to Stop during pipeline teardown and logs that action.

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

Comment on lines 413 to +414
RIALTO_SERVER_LOG_INFO("Deferring releasing of key session %d", keySessionId);
RIALTO_SERVER_LOG_WARN("DPS:::::: Deferring releasing of key session %d (refCounter=%d) - "
Comment on lines +286 to +287
m_gstWrapper->gstElementSendEvent(m_context.pipeline, m_gstWrapper->gstEventNewFlushStart());
m_gstWrapper->gstElementSendEvent(m_context.pipeline, m_gstWrapper->gstEventNewFlushStop(FALSE));
{
m_gstWrapper->gstElementSendEvent(m_context.pipeline, m_gstWrapper->gstEventNewFlushStart());
m_gstWrapper->gstElementSendEvent(m_context.pipeline, m_gstWrapper->gstEventNewFlushStop(FALSE));
RIALTO_SERVER_LOG_WARN("DPS::Sent flush events to drain encrypted buffers before Stop");
Comment on lines +286 to +287
m_gstWrapper->gstElementSendEvent(m_context.pipeline, m_gstWrapper->gstEventNewFlushStart());
m_gstWrapper->gstElementSendEvent(m_context.pipeline, m_gstWrapper->gstEventNewFlushStop(FALSE));

if (m_context.pipeline)
{
m_gstWrapper->gstElementSendEvent(m_context.pipeline, m_gstWrapper->gstEventNewFlushStart());
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.

Coverity Issue - Unchecked return value

Calling "gstElementSendEvent" without checking return value (as is done elsewhere 7 out of 8 times).

Medium Impact, CWE-252
CHECKED_RETURN

if (m_context.pipeline)
{
m_gstWrapper->gstElementSendEvent(m_context.pipeline, m_gstWrapper->gstEventNewFlushStart());
m_gstWrapper->gstElementSendEvent(m_context.pipeline, m_gstWrapper->gstEventNewFlushStop(FALSE));
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.

Coverity Issue - Unchecked return value

Calling "gstElementSendEvent" without checking return value (as is done elsewhere 7 out of 8 times).

Medium Impact, CWE-252
CHECKED_RETURN

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.

3 participants