From 667ba9284cdf1c3111648c23bcdda7481e86e4c3 Mon Sep 17 00:00:00 2001 From: Ferenc Gerlits Date: Tue, 10 Oct 2006 11:20:03 +0000 Subject: [PATCH] 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 * gst/typefind/gsttypefindfunctions.c: Recognise XML files and XML-like files shorter than 256 bytes as well (fixes #359237). --- ChangeLog | 8 ++++++++ gst/typefind/gsttypefindfunctions.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 108dbadf29..df2bf312c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-10-10 Tim-Philipp Müller + + Patch by: Ferenc Gerlits + + * gst/typefind/gsttypefindfunctions.c: + Recognise XML files and XML-like files shorter than 256 bytes as + well (fixes #359237). + 2006-10-09 Edgard Lima Patch by: Renato Filho diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index f783b40d1a..28e1ad6d68 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -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) { \