forked from hex007/freej2me
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PlatformPlayer: Minor improvements to state handling.
We shouldn't be able to retrieve the media's current time if the player isn't at least prefetched (according to the docs, as PREFETCHED is the only state where the exclusive player resources should be fetched). Also, set the player state to PREFETCHED when it reaches an END_OF_MEDIA event before notifying the playerListeners about it. Also, handle allocation, closing and deallocating a bit better in regards to what the should actually do on this player implementation, with deallocate() basically doing nothing, like prefetch(). Fixes #16 (Sonic Jump Siemens version) and probably many others.
- Loading branch information
1 parent
03a3c99
commit c319fb4
Showing
1 changed file
with
56 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters