gst/typefind/gsttypefindfunctions.c: Add typefinder for IMelody files, using audio...
authorSebastian Dröge <slomo@circular-chaos.org>
Mon, 3 Mar 2008 06:22:39 +0000 (06:22 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Mon, 3 Mar 2008 06:22:39 +0000 (06:22 +0000)
Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c: (plugin_init):
Add typefinder for IMelody files, using audio/x-imelody.
See bug #519516.

ChangeLog
gst/typefind/gsttypefindfunctions.c

index f08df9e..a2e43e3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-03-03  Sebastian Dröge  <slomo@circular-chaos.org>
 
+       * gst/typefind/gsttypefindfunctions.c: (plugin_init):
+       Add typefinder for IMelody files, using audio/x-imelody.
+       See bug #519516.
+
+2008-03-03  Sebastian Dröge  <slomo@circular-chaos.org>
+
        * ext/alsa/gstalsamixertrack.c: (gst_alsa_mixer_track_get_type):
        * ext/alsa/gstalsasink.c: (set_hwparams):
        * ext/alsa/gstalsasrc.c: (set_hwparams):
index bf8cbba..8e741cc 100644 (file)
@@ -2961,6 +2961,7 @@ plugin_init (GstPlugin * plugin)
   static gchar *vivo_exts[] = { "viv", NULL };
   static gchar *nsf_exts[] = { "nsf", NULL };
   static gchar *mid_exts[] = { "mid", "midi", NULL };
+  static gchar *imelody_exts[] = { "imy", "ime", "imelody", NULL };
 
   GST_DEBUG_CATEGORY_INIT (type_find_debug, "typefindfunctions",
       GST_DEBUG_FG_GREEN | GST_DEBUG_BG_RED, "generic type find functions");
@@ -2983,6 +2984,8 @@ plugin_init (GstPlugin * plugin)
   TYPE_FIND_REGISTER_START_WITH (plugin, "video/x-vcd", GST_RANK_PRIMARY,
       cdxa_exts, "\000\377\377\377\377\377\377\377\377\377\377\000", 12,
       GST_TYPE_FIND_MAXIMUM);
+  TYPE_FIND_REGISTER_START_WITH (plugin, "audio/x-imelody", GST_RANK_PRIMARY,
+      imelody_exts, "BEGIN:IMELODY", 13, GST_TYPE_FIND_MAXIMUM);
 #if 0
   TYPE_FIND_REGISTER_START_WITH (plugin, "video/x-smoke", GST_RANK_PRIMARY,
       NULL, "\x80smoke\x00\x01\x00", 6, GST_TYPE_FIND_MAXIMUM);