From 6f86b8b8a7d14696a47f49882b2601ee62bcb2b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 3 Mar 2008 06:22:39 +0000 Subject: [PATCH] gst/typefind/gsttypefindfunctions.c: Add typefinder for IMelody files, using audio/x-imelody. Original commit message from CVS: * gst/typefind/gsttypefindfunctions.c: (plugin_init): Add typefinder for IMelody files, using audio/x-imelody. See bug #519516. --- ChangeLog | 6 ++++++ gst/typefind/gsttypefindfunctions.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index f08df9e35d..a2e43e3277 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-03-03 Sebastian Dröge + + * gst/typefind/gsttypefindfunctions.c: (plugin_init): + Add typefinder for IMelody files, using audio/x-imelody. + See bug #519516. + 2008-03-03 Sebastian Dröge * ext/alsa/gstalsamixertrack.c: (gst_alsa_mixer_track_get_type): diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index bf8cbba51b..8e741ccf3a 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -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);