diff options
author | David Schleef <ds@schleef.org> | 2003-10-29 05:09:40 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-10-29 05:09:40 +0000 |
commit | 377610829307e73ef6f63e8e21b6ac1ce86135f1 (patch) | |
tree | 6640e7254dc48c3690684acbb7c5c048a347cef4 /ext/tarkin | |
parent | e58373a8b65fdcddd8a253f4b0ee2253e2af7042 (diff) | |
download | gst-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/tarkin')
-rw-r--r-- | ext/tarkin/gsttarkin.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/ext/tarkin/gsttarkin.c b/ext/tarkin/gsttarkin.c index 6e9abbc1..04270231 100644 --- a/ext/tarkin/gsttarkin.c +++ b/ext/tarkin/gsttarkin.c @@ -24,8 +24,6 @@ extern GstElementDetails tarkinenc_details; extern GstElementDetails tarkindec_details; -static GstCaps* tarkin_type_find (GstBuffer *buf, gpointer private); - GstPadTemplate *enc_src_template, *enc_sink_template; GstPadTemplate *dec_src_template, *dec_sink_template; @@ -58,39 +56,10 @@ raw_caps_factory (void) ); } -static GstTypeDefinition tarkindefinition = -{ - "tarkin_video/x-ogg", - "application/ogg", - ".ogg", - tarkin_type_find, -}; - -static GstCaps* -tarkin_type_find (GstBuffer *buf, gpointer private) -{ - guint32 head; - - if (GST_BUFFER_SIZE (buf) < 4) - return NULL; - - /* FIXME */ - return NULL; - - head = GUINT32_FROM_BE (*((guint32 *)GST_BUFFER_DATA (buf))); - - if (head != 0x4F676753) - return NULL; - - return gst_caps_new ("tarkin_type_find", "application/ogg", NULL); -} - - static gboolean plugin_init (GModule *module, GstPlugin *plugin) { GstElementFactory *enc, *dec; - GstTypeFactory *type; GstCaps *raw_caps, *tarkin_caps; gst_plugin_set_longname (plugin, "The OGG Tarkin Codec"); @@ -147,9 +116,6 @@ plugin_init (GModule *module, GstPlugin *plugin) gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (dec)); - type = gst_type_factory_new (&tarkindefinition); - gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (type)); - return TRUE; } |