GNOME Bugzilla – Bug 618982
[wavparse] wrong closing segment when doing non-flushing seek
Last modified: 2010-06-29 12:12:40 UTC
Created attachment 161354 [details] [review] suggested patch While doing non-flushing seeks on a wavparse element, got gstreamer complaining that assertion 'start <= stop' is false. Using gstreamer0.10.29, gst-plugins-base0.10.29, gst-plugins-good0.10.22 I am not sure what's going on in gstreamer, so this might be just my fault, but in gstwavparse.c, at line 970 (in gst_wavparse_perform_seek()), we have: wav->close_segment = gst_event_new_new_segment (TRUE, wav->segment.rate, wav->segment.format, wav->segment.accum, wav->segment.last_stop, wav->segment.accum); I think that the 4th parameter should be wav->segment.start. Changing this makes the error disapear. I've attached a tentative patch.
Patch was going in the right direction, following commit does a tiny bit more along those lines: commit 0a2d9a22696bce63c1460ce09cc406e4983b315e Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Tue Jun 22 15:22:44 2010 +0200 wavparse: proper closing segment construction Fixes #618982.