GNOME Bugzilla – Bug 359237
[typefinding] doesn't recognize XML files shorter than 256 bytes
Last modified: 2006-10-10 11:20:31 UTC
Please describe the problem: In the application/xml portion of gst/typefind/gsttypefindfunctions.c, the buffer size is set to 256. This causes gst_type_find_peek to return NULL when an XML file shorter than 256 bytes is fed to it, and therefore the file is not recognized as a valid XML file. This bug is present both in the 0.8.12 version of gst-plugins, and the HEAD version of gst-plugins-base. Steps to reproduce: 1. Write your own XML handler plugin (for example, see the SMIL plugin in the LiveSupport project, http://livesupport.campware.org); 2. create an XML file shorter than 256 bytes, but otherwise valid; 3. try to play it. Actual results: Expected results: Does this happen every time? Yes. Other information:
Created attachment 73931 [details] [review] a patch against version 0.8.12 of gst-plugins
Thanks for the patch, committed to CVS HEAD: 2006-10-10 Tim-Philipp Müller <tim at centricular dot net> Patch by: Ferenc Gerlits <fgerlits at gmail com> * gst/typefind/gsttypefindfunctions.c: Recognise XML files and XML-like files shorter than 256 bytes as well (fixes #359237). Please bear in mind that GStreamer-0.8 is out of date and completely unmaintained. Please send patches against GStreamer-0.10 in future. You should port any application still using 0.8 to 0.10.