Integrated: 8357714: AudioClip.play crash on macOS when loading resource from jar

Johan Vos jvos at openjdk.org
Fri Jul 11 17:31:44 UTC 2025


On Wed, 2 Jul 2025 21:47:05 GMT, Johan Vos <jvos at openjdk.org> wrote:

> After JDK-8287822 (https://bugs.openjdk.org/browse/JDK-8287822), mpeg file content is no longer played via GSTPlatform but via OSXPlatform. 
> We need to correctly handle data in case the source is a file inside a jar, in which case CJavaInputStreamCallbacks is used.
> 
> The 2 changes I made are:
> 1. Use ConnectionHolder instead of Locator for CJavaInputStreamCallbacks in case a jar resource is used.
> 2. In case of random access datasource, use readBlock instead of readNextBlock in AVMediaPlayer

This pull request has now been integrated.

Changeset: 203c049a
Author:    Johan Vos <jvos at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/203c049a671ca00e6012dfedd6aa9848e2584b85
Stats:     27 lines in 2 files changed: 18 ins; 4 del; 5 mod

8357714: AudioClip.play crash on macOS when loading resource from jar

Reviewed-by: angorya, almatvee

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

PR: https://git.openjdk.org/jfx/pull/1839


More information about the openjfx-dev mailing list