mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
gst/typefind/gsttypefindfunctions.c: Recognise XML files and XML-like files shorter than 256 bytes as well (fixes #35...
Original commit message from CVS: 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).
This commit is contained in:
parent
04b632fd7a
commit
667ba9284c
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
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).
|
||||
|
||||
2006-10-09 Edgard Lima <edgard.lima@indt.org.br>
|
||||
|
||||
Patch by: Renato Filho <renato.filho@indt.org.br>
|
||||
|
|
|
@ -185,7 +185,7 @@ uri_type_find (GstTypeFind * tf, gpointer unused)
|
|||
|
||||
/*** application/xml **********************************************************/
|
||||
|
||||
#define XML_BUFFER_SIZE 256
|
||||
#define XML_BUFFER_SIZE 16
|
||||
#define XML_INC_BUFFER { \
|
||||
pos++; \
|
||||
if (pos == XML_BUFFER_SIZE) { \
|
||||
|
|
Loading…
Reference in a new issue