summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2002-03-24 20:55:44 +0000
committerAndy Wingo <wingo@pobox.com>2002-03-24 20:55:44 +0000
commit12bac12e5ca800f189b42e889993caac30cf0d55 (patch)
tree75022976aac74c45cebb402029a6e1229b40704a
parent36a52a9edeb7baca532cecae69ecef972dfcd957 (diff)
added plugin_desc structures to libs, which makes their locations cached in the registry. this speeds plugin loading ...
Original commit message from CVS: * added plugin_desc structures to libs, which makes their locations cached in the registry. this speeds plugin loading considerably, especially on uninstalled versions. * put the lib path before all others, for speed reasons. * some fixes to adder's caps. * added linefeeds (\n) to GST_DEBUG strings to match GST_INFO behavior. this is more sane. all code will need to be converted. i think some perl can do this.
-rw-r--r--gst-libs/gst/audio/audio.c14
-rw-r--r--gst-libs/gst/idct/idct.c13
-rw-r--r--gst-libs/gst/resample/resample.c15
-rw-r--r--gst-libs/gst/riff/riff.c14
-rw-r--r--gst/adder/gstadder.c8
5 files changed, 60 insertions, 4 deletions
diff --git a/gst-libs/gst/audio/audio.c b/gst-libs/gst/audio/audio.c
index 8a8c4af9c..a5dfd1eab 100644
--- a/gst-libs/gst/audio/audio.c
+++ b/gst-libs/gst/audio/audio.c
@@ -150,3 +150,17 @@ gst_audio_is_buffer_framed (GstPad* pad, GstBuffer* buf)
else
return FALSE;
}
+
+static gboolean
+plugin_init (GModule *module, GstPlugin *plugin)
+{
+ gst_plugin_set_longname (plugin, "Convenience routines for audio plugins");
+ return TRUE;
+}
+
+GstPluginDesc plugin_desc = {
+ GST_VERSION_MAJOR,
+ GST_VERSION_MINOR,
+ "gstaudio",
+ plugin_init
+};
diff --git a/gst-libs/gst/idct/idct.c b/gst-libs/gst/idct/idct.c
index 6fa63b5bd..7b1158fde 100644
--- a/gst-libs/gst/idct/idct.c
+++ b/gst-libs/gst/idct/idct.c
@@ -126,3 +126,16 @@ void gst_idct_destroy(GstIDCT *idct)
g_free(idct);
}
+static gboolean
+plugin_init (GModule *module, GstPlugin *plugin)
+{
+ gst_plugin_set_longname (plugin, "Accelerated IDCT routines");
+ return TRUE;
+}
+
+GstPluginDesc plugin_desc = {
+ GST_VERSION_MAJOR,
+ GST_VERSION_MINOR,
+ "gstidtc",
+ plugin_init
+};
diff --git a/gst-libs/gst/resample/resample.c b/gst-libs/gst/resample/resample.c
index 286cb84b2..b78ceb49f 100644
--- a/gst-libs/gst/resample/resample.c
+++ b/gst-libs/gst/resample/resample.c
@@ -24,6 +24,8 @@
#include <stdlib.h>
#include <resample.h>
+#include <gst/gstplugin.h>
+#include <gst/gstversion.h>
inline double sinc(double x)
{
@@ -528,3 +530,16 @@ static void resample_sinc_ft(resample_t * r)
}
}
+static gboolean
+plugin_init (GModule *module, GstPlugin *plugin)
+{
+ gst_plugin_set_longname (plugin, "Resampling routines for use in audio plugins");
+ return TRUE;
+}
+
+GstPluginDesc plugin_desc = {
+ GST_VERSION_MAJOR,
+ GST_VERSION_MINOR,
+ "gstresample",
+ plugin_init
+};
diff --git a/gst-libs/gst/riff/riff.c b/gst-libs/gst/riff/riff.c
index 1761bc3b1..5c02a162c 100644
--- a/gst-libs/gst/riff/riff.c
+++ b/gst-libs/gst/riff/riff.c
@@ -224,3 +224,17 @@ gchar *gst_riff_id_to_fourcc(gulong id) {
return fourcc;
}
+
+static gboolean
+plugin_init (GModule *module, GstPlugin *plugin)
+{
+ gst_plugin_set_longname (plugin, "RIFF convenience routines");
+ return TRUE;
+}
+
+GstPluginDesc plugin_desc = {
+ GST_VERSION_MAJOR,
+ GST_VERSION_MINOR,
+ "gstriff",
+ plugin_init
+};
diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c
index 85693cfbe..7a24ce0e7 100644
--- a/gst/adder/gstadder.c
+++ b/gst/adder/gstadder.c
@@ -58,8 +58,8 @@ GST_PADTEMPLATE_FACTORY (gst_adder_src_template_factory,
"law", GST_PROPS_INT (0),
"endianness", GST_PROPS_INT (G_BYTE_ORDER),
"signed", GST_PROPS_BOOLEAN (TRUE),
- "width", GST_PROPS_INT_RANGE (8, 16),
- "depth", GST_PROPS_INT_RANGE (8, 16),
+ "width", GST_PROPS_LIST (GST_PROPS_INT (8), GST_PROPS_LIST (16)),
+ "depth", GST_PROPS_LIST (GST_PROPS_INT (8), GST_PROPS_LIST (16)),
"rate", GST_PROPS_INT_RANGE (4000, 48000), /* FIXME */
"channels", GST_PROPS_INT_RANGE (1, 2)
),
@@ -86,8 +86,8 @@ GST_PADTEMPLATE_FACTORY (gst_adder_sink_template_factory,
"law", GST_PROPS_INT (0),
"endianness", GST_PROPS_INT (G_BYTE_ORDER),
"signed", GST_PROPS_BOOLEAN (TRUE),
- "width", GST_PROPS_INT_RANGE (8, 16),
- "depth", GST_PROPS_INT_RANGE (8, 16),
+ "width", GST_PROPS_LIST (GST_PROPS_INT (8), GST_PROPS_LIST (16)),
+ "depth", GST_PROPS_LIST (GST_PROPS_INT (8), GST_PROPS_LIST (16)),
"rate", GST_PROPS_INT_RANGE (4000, 48000), /* FIXME */
"channels", GST_PROPS_INT_RANGE (1, 2)
),