From f5f94ecf02357607d7fda97e060bc2cba8b4921d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 30 Oct 2002 20:30:58 +0000 Subject: [PATCH] Really remove vorbisdec so it can register again Original commit message from CVS: Really remove vorbisdec so it can register again --- ext/vorbis/vorbis.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/ext/vorbis/vorbis.c b/ext/vorbis/vorbis.c index 317a81d..a7297a9 100644 --- a/ext/vorbis/vorbis.c +++ b/ext/vorbis/vorbis.c @@ -19,13 +19,11 @@ #include -#include extern GType vorbisfile_get_type(void); extern GstElementDetails vorbisfile_details; extern GstElementDetails vorbisenc_details; -extern GstElementDetails vorbisdec_details; static GstCaps* vorbis_type_find (GstBuffer *buf, gpointer private); @@ -98,7 +96,7 @@ vorbis_type_find (GstBuffer *buf, gpointer private) static gboolean plugin_init (GModule *module, GstPlugin *plugin) { - GstElementFactory *enc, *dec, *file; + GstElementFactory *enc, *file; GstTypeFactory *type; GstCaps *raw_caps, *vorbis_caps, *raw_caps2; @@ -127,26 +125,15 @@ plugin_init (GModule *module, GstPlugin *plugin) gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (enc)); - /* create an elementfactory for the vorbisdec element */ - dec = gst_element_factory_new ("vorbisdec", GST_TYPE_VORBISDEC, - &vorbisdec_details); - g_return_val_if_fail (dec != NULL, FALSE); - /* register sink pads */ gst_vorbisdec_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, vorbis_caps, NULL); - gst_element_factory_add_pad_template (dec, gst_vorbisdec_sink_template); - raw_caps = gst_caps_prepend (raw_caps, raw_caps2); /* register src pads */ gst_vorbisdec_src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, raw_caps, NULL); - gst_element_factory_add_pad_template (dec, gst_vorbisdec_src_template); - - gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (dec)); - /* create an elementfactory for the vorbisfile element */ file = gst_element_factory_new ("vorbisfile", vorbisfile_get_type(), &vorbisfile_details); -- 2.7.4