mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
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.
This commit is contained in:
parent
550cb81a70
commit
37c63c864c
4 changed files with 56 additions and 0 deletions
|
@ -150,3 +150,17 @@ gst_audio_is_buffer_framed (GstPad* pad, GstBuffer* buf)
|
||||||
else
|
else
|
||||||
return FALSE;
|
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
|
||||||
|
};
|
||||||
|
|
|
@ -126,3 +126,16 @@ void gst_idct_destroy(GstIDCT *idct)
|
||||||
g_free(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
|
||||||
|
};
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <resample.h>
|
#include <resample.h>
|
||||||
|
#include <gst/gstplugin.h>
|
||||||
|
#include <gst/gstversion.h>
|
||||||
|
|
||||||
inline double sinc(double x)
|
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
|
||||||
|
};
|
||||||
|
|
|
@ -224,3 +224,17 @@ gchar *gst_riff_id_to_fourcc(gulong id) {
|
||||||
|
|
||||||
return fourcc;
|
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
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in a new issue