GNOME Bugzilla – Bug 504018
flacdec emits newsegment before being able to respond to seeks properly
Last modified: 2007-12-18 17:40:47 UTC
Please describe the problem: This bug is following https://bugs.launchpad.net/jokosher/+bug/174474 and http://bugzilla.gnome.org/show_bug.cgi?id=502187. Bilboed comment: "flacdec emits newsegment before being able to answer properly to seeks, which makes it unusable with gnonlin". Following Jokosher bug, now it doesn't freeze, but it ignore gaps between pieces. Steps to reproduce: Follow steps in Jokosher bug. Result is different (Jokosher doesn't freeze) but still buggy. Actual results: Jokosher ignores gaps between pieces in Instrument track. Expected results: Jokosher makes silence when there is a gap between pieces. Does this happen every time? Yes. Other information:
confirmed with gst-media-test gnltest
This makes jokosher work for me: * ext/flac/gstflacdec.c: (gst_flac_dec_reset_decoders), (gst_flac_dec_update_metadata), (gst_flac_dec_metadata_callback), (gst_flac_dec_write): * ext/flac/gstflacdec.h: Remove some unused vars. Do more cleanup of leftover events and tags. Output tags after the segment event. Fixes #504018.