Skip to content

RDKEMW-27811 : [PLI]- [ROGERS IUV2][VIPA]Black Screen and Technical Fault Message on linear channel After Standby Wake-Up due to PlayerRequestTimeOut error - #313

Closed
rekhap2kandhavelan wants to merge 1 commit into
developfrom
feature/RDKEMW-24866
Closed

rekhap2kandhavelan wants to merge 1 commit into
developfrom
feature/RDKEMW-24866

Conversation

@rekhap2kandhavelan

Copy link
Copy Markdown
Contributor

…re clearing a stale sinkbin reference could bypass the Rialto teardown sequence and leave its server-side session active.

The teardown paths now request GST_STATE_NULL, confirm the transition with bounded state polling, remove the sinkbin from the pipeline, and then clear retained references. Test Procedure: updated in ticket
Risks: medium
Priority: P1
Signed-off-by: Rekha Kandhavelan rekha_kandhavelan@comcast.com

@rekhap2kandhavelan
rekhap2kandhavelan requested a review from a team as a code owner October 27, 2026 06:58
Copilot AI balanced review requested due to automatic review settings October 27, 2026 06:58

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.

🟡 Changes recommended

Configuration can still overlap teardown, and the added polling conflicts with existing unit-test expectations.

4 open issues
What changed in this PR

This PR addresses stale closed-caption sinkbins that can leave Rialto server sessions active by explicitly tearing them down before clearing references.

Changes:

  • Request GST_STATE_NULL and poll with bounded retries before removing sinkbins.
  • Add cleanup for stale closed-caption sinkbins during teardown and setup.
  • Introduce synchronization intended to delay configuration while teardown is active.
File Description
InterfacePlayerRDK.cpp Adds sinkbin cleanup, state polling, and teardown/configuration coordination.
InterfacePlayerPriv.h Adds a mutex, condition variable, and teardown-in-progress flag.

Review effort: Balanced

Comment thread InterfacePlayerRDK.cpp
Comment on lines +343 to +345
std::unique_lock<std::mutex> teardownLock(interfacePlayerPriv->gstPrivateContext->mTeardownMutex);
if (!interfacePlayerPriv->gstPrivateContext->mTeardownCV.wait_for(teardownLock, std::chrono::milliseconds(3000),
[this]{ return !interfacePlayerPriv->gstPrivateContext->mTeardownInProgress; }))
Comment thread InterfacePlayerRDK.cpp
if (!interfacePlayerPriv->gstPrivateContext->mTeardownCV.wait_for(teardownLock, std::chrono::milliseconds(3000),
[this]{ return !interfacePlayerPriv->gstPrivateContext->mTeardownInProgress; }))
{
MW_LOG_ERR("InterfacePlayerRDK::ConfigurePipeline: timed out waiting for prior TearDownStream to complete");
Comment thread InterfacePlayerRDK.cpp
{
MW_LOG_ERR("InterfacePlayerRDK::ConfigurePipeline: timed out waiting for prior TearDownStream to complete");
}
}
Comment thread InterfacePlayerRDK.cpp
gint retryCnt = GST_ELEMENT_GET_STATE_RETRY_CNT_MAX;
do
{
(void)gst_element_get_state(GST_ELEMENT(stream->sinkbin), &current, &pending, 100 * GST_MSECOND);
…re clearing a stale sinkbin reference could bypass the Rialto teardown sequence and leave its server-side session active.

The teardown paths now request GST_STATE_NULL, confirm the transition with bounded state polling, remove the sinkbin from the pipeline, and then clear retained references.
Test Procedure: updated in ticket
Risks: medium
Priority: P1
Signed-off-by: Rekha Kandhavelan rekha_kandhavelan@comcast.com
Copilot AI balanced review requested due to automatic review settings October 27, 2026 08:58

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.

Comment thread InterfacePlayerRDK.cpp
Comment thread InterfacePlayerRDK.cpp
@rekhap2kandhavelan rekhap2kandhavelan changed the title Reason for change: This fix addresses a CC sinkbin teardown issue whe… RDKEMW-27811 : [PLI]- [ROGERS IUV2][VIPA]Black Screen and Technical Fault Message on linear channel After Standby Wake-Up due to PlayerRequestTimeOut error Oct 27, 2026
@rekhap2kandhavelan
rekhap2kandhavelan deleted the feature/RDKEMW-24866 branch October 27, 2026 09:59
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants