[gstreamer-bugs] [Bug 346581] New: GStreamer cannot identify the mime-type text/html
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Tue Jul 4 13:29:44 PDT 2006
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=346581
GStreamer | gst-plugins-base | Ver: HEAD CVS
Summary: GStreamer cannot identify the mime-type text/html
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-base
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: lutz at topfrose.de
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
plugins like gnomevfssrc or neonhttpsrc may return text/html, but GStreamer
cannot identify this mime type. I therefore propose the following patch:
Index: gsttypefindfunctions.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-base/gst/typefind/gsttypefindfunctions.c,v
retrieving revision 1.110
diff -u -3 -p -b -B -d -r1.110 gsttypefindfunctions.c
--- gsttypefindfunctions.c 24 May 2006 08:34:53 -0000 1.110
+++ gsttypefindfunctions.c 4 Jul 2006 20:23:48 -0000
@@ -2332,6 +2332,7 @@ plugin_init (GstPlugin * plugin)
static gchar *ape_exts[] = { "ape", NULL };
static gchar *uri_exts[] = { "ram", NULL };
static gchar *smil_exts[] = { "smil", NULL };
+ static gchar *html_exts[] = { "htm", "html", NULL };
static gchar *xml_exts[] = { "xml", NULL };
static gchar *jpeg_exts[] = { "jpg", "jpe", "jpeg", NULL };
static gchar *gif_exts[] = { "gif", NULL };
@@ -2428,6 +2429,9 @@ plugin_init (GstPlugin * plugin)
TYPE_FIND_REGISTER (plugin, "video/quicktime", GST_RANK_SECONDARY,
qt_type_find, qt_exts, QT_CAPS, NULL, NULL);
+ TYPE_FIND_REGISTER_START_WITH (plugin, "text/html",
+ GST_RANK_SECONDARY, html_exts, "<!DOCTYPE HTML", 14,
+ GST_TYPE_FIND_MAXIMUM);
TYPE_FIND_REGISTER_START_WITH (plugin, "application/vnd.rn-realmedia",
GST_RANK_SECONDARY, rm_exts, ".RMF", 4, GST_TYPE_FIND_MAXIMUM);
TYPE_FIND_REGISTER (plugin, "application/x-shockwave-flash",
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Gstreamer-bugs
mailing list