RFR: 8373058: Media crash when playing MP3 over JRT protocol on macOS 26

Ambarish Rapte arapte at openjdk.org
Mon Jan 5 07:39:55 UTC 2026


On Mon, 15 Dec 2025 23:50:34 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:

> Fixed two crashes:
> - `shouldWaitForLoadingOfRequestedResource()` was not synchronized with `dispose()`.
> - `AddBand()`, `RemoveBand()` and `MoveBand()` was not synchronized with `ProcessBufferLists()`.

Suggesting a minor change, otherwise LGTM.

modules/javafx.media/src/main/native/jfxmedia/platform/osx/avf/AVFAudioEqualizer.cpp line 270:

> 268: }
> 269: 
> 270: AVFAudioEqualizer::~AVFAudioEqualizer() {

Should destroy the mutex in the `~AVFAudioEqualizer()` --> `pthread_mutex_destroy(&mBandLock);`

-------------

Changes requested by arapte (Reviewer).

PR Review: https://git.openjdk.org/jfx/pull/2008#pullrequestreview-3625724607
PR Review Comment: https://git.openjdk.org/jfx/pull/2008#discussion_r2660508538


More information about the openjfx-dev mailing list