Skip to content

Fixed getting sub sink and its async prop - #651

Open
smudri85 wants to merge 1 commit into
release/v0.15.2from
SubSinkAsyncProp
Open

smudri85 wants to merge 1 commit into
release/v0.15.2from
SubSinkAsyncProp

Conversation

@smudri85

@smudri85 smudri85 commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary: Added support for getting text-sink in getSink method
Type: Fix
Test Plan: UT/CT, Fullstack
Jira: RDKEMW-27672

Summary: Added support for getting text-sink in getSink method
Type: Fix
Test Plan: UT/CT, Fullstack
Jira: VPLAY-12522
Copilot AI balanced review requested due to automatic review settings October 23, 2026 12:51
@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.

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 focused change preserves audio/video behavior and includes regression coverage for the subtitle sink’s synchronous flush setting.

No open issues 🎉

What changed in this PR

This PR enables the GStreamer player to retrieve subtitle sinks and read their async property when flushing subtitles, while preserving audio/video sink handling.

Changes:

  • Add text-sink lookup for subtitle sources without audio/video-specific sink unwrapping.
  • Separate test helpers for direct sink lookup and audio/video sink lookup.
  • Add regression coverage for synchronous subtitle flushing.
File Description
tests/​unittests/​media/​server/​gstplayer/​genericPlayer/​GstGenericPlayerTest.cpp Add subtitle flush coverage and update audio/video helper calls.
tests/​unittests/​media/​server/​gstplayer/​genericPlayer/​GstGenericPlayerPrivateTest.cpp Update audio/video sink expectations to use the dedicated helper.
tests/​unittests/​media/​server/​gstplayer/​genericPlayer/​common/​GstGenericPlayerTestCommon.h Declare the audio/video helper and text-sink constant.
tests/​unittests/​media/​server/​gstplayer/​genericPlayer/​common/​GstGenericPlayerTestCommon.cpp Separate direct and audio/video sink expectation helpers.
media/​server/​gstplayer/​source/​GstGenericPlayer.cpp Support subtitle sink lookup and bypass audio/video-specific handling.

Review effort: Balanced

@github-actions

Copy link
Copy Markdown

Coverage statistics of your commit:
Congratulations, your commit improved lines coverage from: 0.0% to 84.4%
Congratulations, your commit improved functions coverage from: 0.0% to 92.5%

This branch has not been deployed

No deployments
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