Hi,

I'm using setMediaTime to set the control the playback time for a FOBS/JMF player. I've noticed that each seek operation via setMediaTime seems to leak memory. Under Windows, the Java memory usage displayed in Task Manager increases steadily. The rate of increase seems to depend on the type of media being played. For MP4 video, the increase is about 100-200k bytes per seek. For WAV audio (8Khz mono), it can leak anywhere from 1 to 5 megabytes per seek!

I've also tried seeking using FramePositioningControl, but mapTimeToFrame always returns 0, so its not very useful. Also, this control is only available for video and some of my files are audio.

Are there any other safe ways of seeking a Player?

I noticed this strange message in the logs (see below): "SetAudioClassic Called... Use another format!". setAudioClassic seems to be a fallback which is called only when av_seek_frame fails, but it seems to close and reopen the Decoder so I'm guessing something is not being cleaned up properly. It seems odd that av_seek_frame does not work on WAV audio. Could something else be wrong?

Cheers,
  Stewart

Resetting Thread[Loop thread: com.omnividea.media.parser.video.AudioTrack@185e155,5,system]
Opening Thread[Loop thread: com.omnividea.media.parser.video.AudioTrack@185e155,5,system]
SetAudioClassic Called... Use another format!
448.503First Position: 0, -1 Duration: 448502
Setting position Thread[AWT-EventQueue-0,6,main]
New position request: 203.914
Seeking pos: 203914 - Real: 202914000
Performing Audio seek: -1