GNOME Bugzilla – Bug 320774
basesrc commit broke typefinding
Last modified: 2005-11-07 11:16:51 UTC
After this commit: http://cvs.freedesktop.org/gstreamer/gstreamer/gst/base/gstbasesrc.c?r1=1.72&r2=1.73 playbin doesn't work anymore: luogni@bucefalo:~/Sorgenti/devel/0.9$ ./playbin home/luogni/Temp/nokia770doom.avi PAUSE pipeline ... ERROR: pipeline doesn't want to pause. It seems that "gst_base_src_get_range" is called before the element change state from NULL to READY so src->segment_end is not initialized (and it defaults to zero at least here). This sets "maxsize = 0" in the _get_range function and make s playbin fail. Just adding a: basesrc->segment_end = -1; in "gst_base_src_init" makes playbin happy :)
Your fix was right it seems: 2005-11-07 Wim Taymans <wim@fluendo.com> * gst/base/gstbasesrc.c: (gst_base_src_init), (gst_base_src_get_range): Set the segment_end to -1 initially. Fixed typefind. Cheers -Tim