diff options
author | Benjamin Otte <otte@gnome.org> | 2003-10-23 02:14:06 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2003-10-23 02:14:06 +0000 |
commit | 4de40d8ccd21dca15aaf792a842d266604cc59a7 (patch) | |
tree | 007af382ebbb6360d361074d9cf91ed5f4892106 /ext/swfdec/gstswfdec.c | |
parent | 3b6a89d19d1e271cdd05645895e15b800dfe4934 (diff) | |
download | gst-plugins-bad-4de40d8ccd21dca15aaf792a842d266604cc59a7.tar.gz gst-plugins-bad-4de40d8ccd21dca15aaf792a842d266604cc59a7.tar.bz2 gst-plugins-bad-4de40d8ccd21dca15aaf792a842d266604cc59a7.zip |
initial typefind checkin. All typefind functions have been put into one single plugin in gst/typefind
Original commit message from CVS:
initial typefind checkin. All typefind functions have been put into one single plugin in gst/typefind
Diffstat (limited to 'ext/swfdec/gstswfdec.c')
-rw-r--r-- | ext/swfdec/gstswfdec.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/ext/swfdec/gstswfdec.c b/ext/swfdec/gstswfdec.c index 58e96e87..78ed29b4 100644 --- a/ext/swfdec/gstswfdec.c +++ b/ext/swfdec/gstswfdec.c @@ -626,34 +626,10 @@ gst_swfdec_get_property (GObject *object, guint prop_id, GValue *value, GParamSp } } -static GstCaps * -swf_type_find(GstByteStream *bs, gpointer private) -{ - GstBuffer *buf; - gchar *data; - - gst_bytestream_peek (bs, &buf, 4); - data = GST_BUFFER_DATA(buf); - - if (GST_BUFFER_SIZE (buf) < 4) - return NULL; - - if((data[0] != 'F' && data[0] != 'C') || - data[1] != 'W' || data[2] != 'S')return NULL; - - return gst_caps_new("swf_type_find","application/x-shockwave-flash", - NULL); -} - -static GstTypeDefinition swftype_definition = - { "swfdecode/x-shockwave-flash", "application/x-shockwave-flash", - ".swf .swfl", swf_type_find }; - static gboolean plugin_init (GModule *module, GstPlugin *plugin) { GstElementFactory *factory; - GstTypeFactory *type; /* create an elementfactory for the swfdec element */ factory = gst_element_factory_new("swfdec",GST_TYPE_SWFDEC, @@ -670,9 +646,6 @@ plugin_init (GModule *module, GstPlugin *plugin) gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory)); - type = gst_type_factory_new(&swftype_definition); - gst_plugin_add_feature(plugin, GST_PLUGIN_FEATURE(type)); - return TRUE; } |