summaryrefslogtreecommitdiffstats
path: root/ext/ivorbis
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-10-29 05:09:40 +0000
committerDavid Schleef <ds@schleef.org>2003-10-29 05:09:40 +0000
commit377610829307e73ef6f63e8e21b6ac1ce86135f1 (patch)
tree6640e7254dc48c3690684acbb7c5c048a347cef4 /ext/ivorbis
parente58373a8b65fdcddd8a253f4b0ee2253e2af7042 (diff)
downloadgst-plugins-bad-377610829307e73ef6f63e8e21b6ac1ce86135f1.tar.gz
gst-plugins-bad-377610829307e73ef6f63e8e21b6ac1ce86135f1.tar.bz2
gst-plugins-bad-377610829307e73ef6f63e8e21b6ac1ce86135f1.zip
Move a few typefind functions to gst/typefind, remove all old typefinding code from bitrotten plugins
Original commit message from CVS: Move a few typefind functions to gst/typefind, remove all old typefinding code from bitrotten plugins
Diffstat (limited to 'ext/ivorbis')
-rw-r--r--ext/ivorbis/vorbis.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/ext/ivorbis/vorbis.c b/ext/ivorbis/vorbis.c
index 34536edc..b23bcbea 100644
--- a/ext/ivorbis/vorbis.c
+++ b/ext/ivorbis/vorbis.c
@@ -27,8 +27,6 @@ extern GType ivorbisfile_get_type(void);
extern GstElementDetails ivorbisfile_details;
-static GstCaps* vorbis_type_find (GstBuffer *buf, gpointer private);
-
GstPadTemplate *gst_vorbisdec_src_template, *gst_vorbisdec_sink_template;
static GstCaps*
@@ -73,35 +71,10 @@ raw_caps2_factory (void)
NULL));
}
-static GstTypeDefinition vorbisdefinition = {
- "tremor_audio/x-ogg",
- "application/ogg",
- ".ogg",
- vorbis_type_find,
-};
-
-static GstCaps*
-vorbis_type_find (GstBuffer *buf, gpointer private)
-{
- guint32 head;
-
- if (GST_BUFFER_SIZE (buf) < 4)
- return NULL;
-
- head = GUINT32_FROM_BE (*((guint32 *)GST_BUFFER_DATA (buf)));
-
- if (head != 0x4F676753)
- return NULL;
-
- return gst_caps_new ("vorbis_type_find", "application/ogg", NULL);
-}
-
-
static gboolean
plugin_init (GModule *module, GstPlugin *plugin)
{
GstElementFactory *file;
- GstTypeFactory *type;
GstCaps *raw_caps, *vorbis_caps, *raw_caps2;
if (!gst_library_load ("gstbytestream"))
@@ -135,9 +108,6 @@ plugin_init (GModule *module, GstPlugin *plugin)
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (file));
- type = gst_type_factory_new (&vorbisdefinition);
- gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (type));
-
return TRUE;
}