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 /gst/qtdemux/qtdemux.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 'gst/qtdemux/qtdemux.c')
-rw-r--r-- | gst/qtdemux/qtdemux.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index dfd4b2c5..c3cb63fb 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -104,15 +104,6 @@ gst_qtdemux_details = "(C) 2003", }; -static GstCaps* quicktime_type_find (GstByteStream *bs, gpointer private); - -static GstTypeDefinition quicktimedefinition = { - "qtdemux_video/quicktime", - "video/quicktime", - ".mov", - quicktime_type_find, -}; - enum { LAST_SIGNAL }; @@ -186,37 +177,10 @@ gst_qtdemux_init (GstQTDemux *qtdemux) gst_element_add_pad (GST_ELEMENT (qtdemux), qtdemux->sinkpad); } -static GstCaps* -quicktime_type_find (GstByteStream *bs, gpointer private) -{ - GstBuffer *buf = NULL; - GstCaps *new = NULL; - - if (gst_bytestream_peek (bs, &buf, 8) == 8) { - gchar *data = GST_BUFFER_DATA (buf); - - if (!strncmp (&data[4], "wide", 4) || - !strncmp (&data[4], "moov", 4) || - !strncmp (&data[4], "mdat", 4) || - !strncmp (&data[4], "free", 4)) { - new = GST_CAPS_NEW ("quicktime_type_find", - "video/quicktime", - NULL); - } - } - - if (buf != NULL) { - gst_buffer_unref (buf); - } - - return new; -} - static gboolean plugin_init (GModule *module, GstPlugin *plugin) { GstElementFactory *factory; - GstTypeFactory *type; GstCaps *audiocaps = NULL, *videocaps = NULL, *temp; const guint32 audio_fcc[] = { /* FILLME */ @@ -254,9 +218,6 @@ plugin_init (GModule *module, GstPlugin *plugin) gst_element_factory_add_pad_template (factory, videosrctempl); gst_element_factory_add_pad_template (factory, audiosrctempl); - type = gst_type_factory_new (&quicktimedefinition); - gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (type)); - gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory)); return TRUE; |