From 5392bc2b213cbd321b057de5bc966e5c52499664 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 27 Oct 2003 16:20:57 +0000 Subject: [PATCH] doc updates, removal of stale code Original commit message from CVS: doc updates, removal of stale code --- gst/gsttypefind.c | 13 ------------- gst/gsttypefind.h | 3 +-- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/gst/gsttypefind.c b/gst/gsttypefind.c index 2e2cb31132..77677d362a 100644 --- a/gst/gsttypefind.c +++ b/gst/gsttypefind.c @@ -26,14 +26,6 @@ GST_DEBUG_CATEGORY_STATIC (gst_type_find_debug); #define GST_CAT_DEFAULT gst_type_find_debug -/* GstTypeFind flags */ -enum { - FLAG_OFFSET = (1 << 0), - FLAG_SIZE = (1 << 1), - FLAG_CAPS = (1 << 2), - FLAG_EXTENSIONS = (1 << 3) -}; - static void gst_type_find_factory_class_init (gpointer g_class, gpointer class_data); static void gst_type_find_factory_init (GTypeInstance * instance, @@ -284,11 +276,6 @@ gst_type_find_peek (GstTypeFind *find, gint64 offset, guint size) * given probability. A typefind function may supply different suggestions * in one call. * It is up to the caller of the typefind function to interpret these values. - * A typefind function not suggesting Caps during one call is thought - * to have no chance to identify the data. If there is even the slightest - * possibility that this data may still be identified by your function once - * more data is available you must call this function - preferrably with a - * probability of 0. */ void gst_type_find_suggest (GstTypeFind *find, guint probability, GstCaps *caps) diff --git a/gst/gsttypefind.h b/gst/gsttypefind.h index 6e18ee4b80..e80dc2d3e3 100644 --- a/gst/gsttypefind.h +++ b/gst/gsttypefind.h @@ -42,10 +42,9 @@ typedef struct _GstTypeFind GstTypeFind; typedef struct _GstTypeFindFactory GstTypeFindFactory; typedef struct _GstTypeFindFactoryClass GstTypeFindFactoryClass; -typedef void (* GstTypeFindFunction) (GstTypeFind *info, gpointer data); +typedef void (* GstTypeFindFunction) (GstTypeFind *find, gpointer data); enum { - GST_TYPE_FIND_NO_IDEA = 0, GST_TYPE_FIND_MINIMUM = 1, GST_TYPE_FIND_POSSIBLE = 50, GST_TYPE_FIND_LIKELY = 80,