From 705122a2c22cd0b6a20ef13a5f71dc907c5a1df2 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 10 Feb 2006 11:29:55 +0000 Subject: [PATCH] gst/typefind/gsttypefindfunctions.c: Added flv file typefind (video/x-flv). Original commit message from CVS: * gst/typefind/gsttypefindfunctions.c: (plugin_init): Added flv file typefind (video/x-flv). --- ChangeLog | 5 +++++ gst/typefind/gsttypefindfunctions.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 067383a655..a145a85e5a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-02-10 Edward Hervey + + * gst/typefind/gsttypefindfunctions.c: (plugin_init): + Added flv file typefind (video/x-flv). + 2006-02-10 Edward Hervey * gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps), diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 3fe821f01b..6e1a7d3980 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -2094,6 +2094,7 @@ plugin_init (GstPlugin * plugin) static gchar *msdos_exts[] = { "dll", "exe", "ocx", "sys", "scr", "msstyles", "cpl", NULL }; + static gchar *flv_exts[] = { "flv", NULL }; GST_DEBUG_CATEGORY_INIT (type_find_debug, "typefindfunctions", GST_DEBUG_FG_GREEN | GST_DEBUG_BG_RED, "generic type find functions"); @@ -2155,6 +2156,8 @@ plugin_init (GstPlugin * plugin) GST_RANK_SECONDARY, rm_exts, ".RMF", 4, GST_TYPE_FIND_MAXIMUM); TYPE_FIND_REGISTER (plugin, "application/x-shockwave-flash", GST_RANK_SECONDARY, swf_type_find, swf_exts, SWF_CAPS, NULL, NULL); + TYPE_FIND_REGISTER_START_WITH (plugin, "video/x-flv", GST_RANK_SECONDARY, + flv_exts, "FLV", 3, GST_TYPE_FIND_MAXIMUM); TYPE_FIND_REGISTER (plugin, "text/plain", GST_RANK_MARGINAL, utf8_type_find, utf8_exts, UTF8_CAPS, NULL, NULL); TYPE_FIND_REGISTER (plugin, "text/uri-list", GST_RANK_MARGINAL, uri_type_find,