gst/typefind/gsttypefindfunctions.c: Added flv file typefind (video/x-flv).
authorEdward Hervey <bilboed@bilboed.com>
Fri, 10 Feb 2006 11:29:55 +0000 (11:29 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 10 Feb 2006 11:29:55 +0000 (11:29 +0000)
Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c: (plugin_init):
Added flv file typefind (video/x-flv).

ChangeLog
gst/typefind/gsttypefindfunctions.c

index 067383a..a145a85 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-02-10  Edward Hervey  <edward@fluendo.com>
 
+       * gst/typefind/gsttypefindfunctions.c: (plugin_init):
+       Added flv file typefind (video/x-flv).
+
+2006-02-10  Edward Hervey  <edward@fluendo.com>
+
        * gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
        (gst_riff_create_video_template_caps):
        Added FLV1 <==> 'video/x-flash-video,flvversion=1' conversion.
index 3fe821f..6e1a7d3 100644 (file)
@@ -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,