From a49e89d51449d1b44b40e81afdb406a1406bac6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 25 Feb 2008 06:29:12 +0000 Subject: Remove midi typefinders and require base CVS as they moved there. Original commit message from CVS: * configure.ac: * ext/timidity/gsttimidity.c: (plugin_init): * ext/timidity/gstwildmidi.c: (plugin_init): Remove midi typefinders and require base CVS as they moved there. --- ext/timidity/gsttimidity.c | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'ext/timidity/gsttimidity.c') diff --git a/ext/timidity/gsttimidity.c b/ext/timidity/gsttimidity.c index 1a51fe38..0561b03c 100644 --- a/ext/timidity/gsttimidity.c +++ b/ext/timidity/gsttimidity.c @@ -799,39 +799,12 @@ gst_timidity_change_state (GstElement * element, GstStateChange transition) return ret; } -/* - * http://jedi.ks.uiuc.edu/~johns/links/music/midifile.html - */ -static void -gst_timidity_typefind (GstTypeFind * tf, gpointer _data) -{ - guint8 *data = gst_type_find_peek (tf, 0, 4); - - if (data && data[0] == 'M' && data[1] == 'T' && data[2] == 'h' - && data[3] == 'd') { - gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, - gst_caps_new_simple ("audio/midi", NULL)); - } -} - static gboolean plugin_init (GstPlugin * plugin) { - static gchar *exts[] = { "mid", "midi", NULL }; - GstCaps *caps; - GST_DEBUG_CATEGORY_INIT (gst_timidity_debug, "timidity", 0, "Timidity plugin"); - caps = gst_caps_new_simple ("audio/midi", NULL); - if (!gst_type_find_register (plugin, "audio/midi", GST_RANK_PRIMARY, - gst_timidity_typefind, exts, caps, NULL, NULL)) { - GST_WARNING ("can't register typefind"); - gst_caps_unref (caps); - return FALSE; - } - gst_caps_unref (caps); - return gst_element_register (plugin, "timidity", GST_RANK_PRIMARY, GST_TYPE_TIMIDITY); } -- cgit v1.2.1