Changeset 36086 in osm


Ignore:
Timestamp:
2023-05-30T18:11:40+02:00 (18 months ago)
Author:
taylor.smock
Message:

Fix #22973: mp3 support is broken

This occurred due to the constructor for the JavaFxMediaPlayer being private.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/javafx/src/org/openstreetmap/josm/plugins/javafx/io/audio/JavaFxMediaPlayer.java

    r34700 r36086  
    4040    private MediaPlayer mediaPlayer;
    4141
    42     JavaFxMediaPlayer() {
     42    /**
     43     * Create a new {@link JavaFxMediaPlayer}.
     44     * This must be public in order for the object creation through reflection to succeed.
     45     */
     46    public JavaFxMediaPlayer() {
    4347        try {
    4448            initFxPlatform();
    4549        } catch (InterruptedException e) {
     50            Thread.currentThread().interrupt();
    4651            throw new JosmRuntimeException(e);
    4752        }
Note: See TracChangeset for help on using the changeset viewer.