Skip to content

[audioplayers] Remove Ecore API#1033

Merged
JSUYA merged 1 commit into
flutter-tizen:masterfrom
JSUYA:audioplayers-remove-ecore
Jun 18, 2026
Merged

[audioplayers] Remove Ecore API#1033
JSUYA merged 1 commit into
flutter-tizen:masterfrom
JSUYA:audioplayers-remove-ecore

Conversation

@JSUYA

@JSUYA JSUYA commented Jun 16, 2026

Copy link
Copy Markdown
Member

Replace the Ecore main-loop and timer APIs with their GLib APIs.

flutter-tizen/embedder#146

@JSUYA JSUYA self-assigned this Jun 16, 2026
@JSUYA JSUYA added the enhancement New feature or request label Jun 16, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request replaces the Ecore API with GLib APIs for idle callbacks and timers in the Tizen AudioPlayer implementation, and updates the package version to 3.1.4. The review feedback identifies potential Use-After-Free vulnerabilities when using g_idle_add on background threads. To address this, the feedback suggests implementing a lifetime tracker using std::shared_ptr and std::weak_ptr, and refactoring the callbacks to use g_idle_add_full to safely verify the player's existence before execution.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread packages/audioplayers/tizen/src/audio_player.h
Comment thread packages/audioplayers/tizen/src/audio_player.cc
Comment thread packages/audioplayers/tizen/src/audio_player.cc Outdated
Comment thread packages/audioplayers/tizen/src/audio_player.cc Outdated
Comment thread packages/audioplayers/tizen/src/audio_player.h
Replace the Ecore main-loop and timer APIs with their GLib APIs.
@JSUYA
JSUYA force-pushed the audioplayers-remove-ecore branch from 4fb64af to b3b99f3 Compare June 16, 2026 05:13
@JSUYA
JSUYA merged commit 5412074 into flutter-tizen:master Jun 18, 2026
6 checks passed
seungsoo47 added a commit to seungsoo47/plugins that referenced this pull request Jun 18, 2026
ecore_main_loop_thread_safe_call_async was removed in the Ecore API
cleanup (flutter-tizen#1033). Replace the two remaining usages in OnInterrupted and
OnError with g_idle_add_full, consistent with OnPrepared, OnSeekCompleted,
and OnPlayCompleted.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
seungsoo47 added a commit to seungsoo47/plugins that referenced this pull request Jun 22, 2026
ecore_main_loop_thread_safe_call_async was removed in the Ecore API
cleanup (flutter-tizen#1033). Replace the two remaining usages in OnInterrupted and
OnError with g_idle_add_full, consistent with OnPrepared, OnSeekCompleted,
and OnPlayCompleted.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request p: audioplayers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants