From 71e6bbd19fa1845dc07abc561b1ca5a71ae59d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 13 Jul 2009 22:38:43 +0100 Subject: kate: remove local kate typefinder, use the one in -base --- ext/kate/gstkate.c | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/ext/kate/gstkate.c b/ext/kate/gstkate.c index 9d6867a5..3a953353 100644 --- a/ext/kate/gstkate.c +++ b/ext/kate/gstkate.c @@ -68,42 +68,9 @@ GST_DEBUG_CATEGORY (gst_katetag_debug); GST_DEBUG_CATEGORY (gst_katetiger_debug); #endif - -static GstStaticCaps kate_caps = GST_STATIC_CAPS (GST_KATE_MEDIA_TYPE); - -#define KATE_CAPS (gst_static_caps_get(&kate_caps)) -static void -gst_kate_type_find (GstTypeFind * tf, gpointer private) -{ - guint8 *data = gst_type_find_peek (tf, 0, 8); - - if (data) { - if (memcmp (data, "\200kate\0\0\0", 8) != 0) - return; - - gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, KATE_CAPS); - } -} - -/* entry point to initialize the plug-in - * initialize the plug-in itself - * register the element factories and pad templates - * register the features - */ static gboolean plugin_init (GstPlugin * plugin) { - GstCaps *caps; - - caps = gst_caps_new_simple (GST_KATE_MEDIA_TYPE, NULL); - if (!gst_type_find_register (plugin, GST_KATE_MEDIA_TYPE, GST_RANK_PRIMARY, - gst_kate_type_find, NULL, caps, NULL, NULL)) { - GST_WARNING ("kate: failed to register typefind"); - gst_caps_unref (caps); - return FALSE; - } - gst_caps_unref (caps); - GST_DEBUG_CATEGORY_INIT (gst_katedec_debug, "katedec", 0, "Kate decoder"); GST_DEBUG_CATEGORY_INIT (gst_kateenc_debug, "kateenc", 0, "Kate encoder"); GST_DEBUG_CATEGORY_INIT (gst_kateparse_debug, "kateparse", 0, "Kate parser"); -- cgit v1.2.1