GNOME Bugzilla – Bug 519001
[wildmidi] Doesn't handle seeking correctly
Last modified: 2009-09-04 15:35:30 UTC
Hi, the wildmidi element currently does not handle seeking correctly. First, seeking does not work at all it seems and then the error reporting seems to be a bit too hard: libWildMidi(WildMidi_Init:3707): ERROR Library not Initialized ** Message: don't know how to handle audio/midi ** Message: Error: A audio/midi decoder plugin is required to play this stream, but not installed. gstdecodebin.c(792): close_pad_link (): /play/decodebin1: No decoder to handle media type 'audio/midi' ** Message: Missing plugin: gstreamer|0.10|totem|audio/midi decoder|decoder-audio/midi (audio/midi decoder) ** Message: Automatic missing codec installation not supported (helper script missing) So wildmidi should check for errors while seeking and handle them better (i.e. plya from the current position instead of exploding) and then seeking should made to work somehow ;)
Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468083
Works for me now after some massive cleanups. commit f874e30998683eed73eea65a657452293595469f Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Fri Sep 4 17:27:52 2009 +0200 wildmidi: cleanups and fix seeking Remove time_per_frame, it's too inaccurate. Fix convert for -1 values. Use scaling to convert samples to time. Fix segment handling. Fix seeking. Fix buffer clipping (not yet enabled) Protect the WildMidi library with the object lock to avoid races when changing properties. Fix offsets on output buffers, for raw audio the offset contains the sample position not byte position. Add better DISCONT handling. Fixes #519001