hex007 / freej2me

A free J2ME emulator with libretro, awt and sdl2 frontends.
Other
501 stars 78 forks source link

PlatformPlayer: Only stop media playback if it is running #201

Closed AShiningRay closed 9 months ago

AShiningRay commented 1 year ago

Fixes #200

"Orcs and Elves" constantly tries to stop a MIDI stream that isn't even running, and ends up causing a stack overflow on PlatformPlayer. Since it only makes sense to stop streams that are actually running, add a check for cases where they aren't.

Since it has been shown to happen with MIDI streams, it might happen on WAV streams as well, so i'm adding that check for both.