[Bug 647364] VGM files loop indefinately

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Apr 13 11:04:20 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=647364
  GStreamer | gst-plugins-bad | 0.10.21

--- Comment #4 from mihai.draghicioiu at gmail.com 2011-04-13 18:04:17 UTC ---
The files themselves do not specify the number of loops to play, because they
were designed to be played indefinately as the level background music, until
the level ended. However, some files have a play_duration field in the header,
which from my understanding is optional (see gme.h, i think there is something
written in there about it). So the only thing that can be done to improve the
patch would be to also test for gme_tell(gme->player) * GST_MSECOND >
(gme->play_duration > 0 ? gme->play_duration : gme->intro_duration +
gme->loop_duration * 2).

Think of it this way. Infinite looping has to be avoided, and from all the
information we have, this seems the best we can do. Like I said, we don't have
the number of loops from libgme, all we have is play_length and even that is
optional. intro_duration and loop_duration seem to be always there. I suppose
this would require extensive testing with several file types that libgme
supports, to see how it behaves. But perhaps the libgme author himself has some
more info on this subject.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list