After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 320774 - basesrc commit broke typefinding
basesrc commit broke typefinding
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: 0.9.5
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-05 18:31 UTC by Luca Ognibene
Modified: 2005-11-07 11:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luca Ognibene 2005-11-05 18:31:11 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 :)
Comment 1 Tim-Philipp Müller 2005-11-07 11:16:51 UTC
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