Skip to content

RDKEMW-22188: Eliminating crash happening in gst-plugin loader - #1770

Merged
paulpandian25 merged 11 commits into
support/2.11.1_8.4from
feature/RDKEMW-22188
Jul 30, 2026
Merged

RDKEMW-22188: Eliminating crash happening in gst-plugin loader #1770
paulpandian25 merged 11 commits into
support/2.11.1_8.4from
feature/RDKEMW-22188

Conversation

@dp0000

@dp0000 dp0000 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Eliminating crash happening in gst-plugin loader

@dp0000
dp0000 requested a review from a team as a code owner July 23, 2026 03:26

@Vinish100 Vinish100 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.

Looks good to me 👍

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 aims to eliminate a crash in the GStreamer plugin loader by splitting SoC/platform detection into two phases: a dl_init-safe phase (device.properties only) and a post-GStreamer-init phase (plugin registry scan).

Changes:

  • Added a Phase 2 API (SocInterface::InitializePlatformFromPlugins) to perform plugin-based platform detection after GStreamer is initialized.
  • Refactored SocInterface singleton creation to avoid GStreamer calls during Phase 1, using a global shared_ptr guarded by a mutex.
  • Hooked Phase 2 platform initialization into InterfacePlayerRDK::InitializePlayerGstreamerPlugins().

Reviewed changes

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

File Description
middleware/vendor/SocInterface.h Declares Phase 2 platform initialization API.
middleware/vendor/SocInterface.cpp Implements two-phase platform detection and mutex-protected singleton storage.
middleware/InterfacePlayerRDK.cpp Calls Phase 2 platform initialization during GStreamer plugin initialization.

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

Comment thread middleware/InterfacePlayerRDK.cpp

@Vinish100 Vinish100 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.

Looks good to me 👍

@paulpandian25
paulpandian25 merged commit c149791 into support/2.11.1_8.4 Jul 30, 2026
5 checks passed
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.

5 participants