GNOME Bugzilla – Bug 142851
gstid3tag sends wrong offset on discont events
Last modified: 2004-12-22 21:47:04 UTC
gstid3tag sends a discont event containing the offset in the whole file, not the offset of the file stripped of id3 tags. This is inconsistent with the buffer offsets it sets and basically means that a decoder element has to know that the file contains an id3v2 tag (or ignore the discont value and use the offset of the next buffer, but that's ugly). I got a patch that fixes it, but for some reason that breaks flac files with id3 tags.
Created attachment 27878 [details] [review] patch for gstid3tag.c
How does this break FLAC files? Patch looks good, I'd vote for applying it.
Normal flac files work fine, .flac files with id3 tags report a wrong total lenght in gst-player and seeking always seeks back to start of file.
It probably *reports* a new timestamp of zero. That sounds like the same bug that I just fixed in the mad plugin. It really does seek halfway, but it reports a timestamp of zero afterwards.
applied