+2008-08-30 Tim-Philipp Müller <tim.muller at collabora co uk>
+
+ Patch by: Jonathan Matthew <notverysmart gmail com>
+
+ * gst/typefind/gsttypefindfunctions.c: (plugin_init):
+ Add typefinder for PDF documents (which is nice to have, since it's a
+ common format, but also helps prevent false positives). Fixes #549814.
+
2008-08-27 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/playback/gstplaybin2.c: (selector_blocked), (pad_added_cb),
static gchar *nsf_exts[] = { "nsf", NULL };
static gchar *mid_exts[] = { "mid", "midi", NULL };
static gchar *imelody_exts[] = { "imy", "ime", "imelody", NULL };
+ static gchar *pdf_exts[] = { "pdf", NULL };
GST_DEBUG_CATEGORY_INIT (type_find_debug, "typefindfunctions",
GST_DEBUG_FG_GREEN | GST_DEBUG_BG_RED, "generic type find functions");
vivo_type_find, vivo_exts, VIVO_CAPS, NULL, NULL);
TYPE_FIND_REGISTER_START_WITH (plugin, "audio/x-nsf",
GST_RANK_SECONDARY, nsf_exts, "NESM\x1a", 5, GST_TYPE_FIND_MAXIMUM);
+ TYPE_FIND_REGISTER_START_WITH (plugin, "application/pdf",
+ GST_RANK_SECONDARY, pdf_exts, "%PDF-", 5, GST_TYPE_FIND_LIKELY);
return TRUE;
}