mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
I'm too lazy to comment this
Original commit message from CVS: .
This commit is contained in:
parent
c86afad90b
commit
2cc573d0b0
1 changed files with 25 additions and 21 deletions
|
@ -69,11 +69,8 @@ struct _GstMixMatrixClass {
|
||||||
static GstElementDetails mixmatrix_details = {
|
static GstElementDetails mixmatrix_details = {
|
||||||
"Mixing Matrix",
|
"Mixing Matrix",
|
||||||
"Filter/Audio",
|
"Filter/Audio",
|
||||||
"LGPL",
|
|
||||||
"Mix N audio channels together into M channels",
|
"Mix N audio channels together into M channels",
|
||||||
VERSION,
|
"Erik Walthinsen <omega@temple-baptist.com>"
|
||||||
"Erik Walthinsen <omega@temple-baptist.com>",
|
|
||||||
"(C) 2002",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
@ -114,6 +111,7 @@ GST_PAD_TEMPLATE_FACTORY (mixmatrix_src_factory,
|
||||||
);
|
);
|
||||||
|
|
||||||
static void gst_mixmatrix_class_init (GstMixMatrixClass *klass);
|
static void gst_mixmatrix_class_init (GstMixMatrixClass *klass);
|
||||||
|
static void gst_mixmatrix_base_init (GstMixMatrixClass *klass);
|
||||||
static void gst_mixmatrix_init (GstMixMatrix *element);
|
static void gst_mixmatrix_init (GstMixMatrix *element);
|
||||||
|
|
||||||
static void gst_mixmatrix_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec);
|
static void gst_mixmatrix_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec);
|
||||||
|
@ -135,7 +133,7 @@ gst_mixmatrix_get_type(void) {
|
||||||
if (!mixmatrix_type) {
|
if (!mixmatrix_type) {
|
||||||
static const GTypeInfo mixmatrix_info = {
|
static const GTypeInfo mixmatrix_info = {
|
||||||
sizeof(GstMixMatrixClass),
|
sizeof(GstMixMatrixClass),
|
||||||
NULL,
|
(GBaseInitFunc)gst_mixmatrix_base_init,
|
||||||
NULL,
|
NULL,
|
||||||
(GClassInitFunc)gst_mixmatrix_class_init,
|
(GClassInitFunc)gst_mixmatrix_class_init,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -149,6 +147,16 @@ gst_mixmatrix_get_type(void) {
|
||||||
return mixmatrix_type;
|
return mixmatrix_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gst_mixmatrix_base_init (GstMixMatrixClass *klass)
|
||||||
|
{
|
||||||
|
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
||||||
|
|
||||||
|
gst_element_class_add_pad_template (element_class, sinktempl);
|
||||||
|
gst_element_class_add_pad_template (element_class, srctempl);
|
||||||
|
gst_element_class_set_details (element_class, &mixmatrix_details);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_mixmatrix_class_init (GstMixMatrixClass *klass)
|
gst_mixmatrix_class_init (GstMixMatrixClass *klass)
|
||||||
{
|
{
|
||||||
|
@ -496,31 +504,27 @@ gst_mixmatrix_get_property (GObject *object, guint prop_id, GValue *value, GPara
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
plugin_init (GModule *module, GstPlugin *plugin)
|
plugin_init (GstPlugin *plugin)
|
||||||
{
|
{
|
||||||
GstElementFactory *factory;
|
|
||||||
|
|
||||||
if (!gst_library_load ("gstbytestream"))
|
if (!gst_library_load ("gstbytestream"))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
factory = gst_element_factory_new ("mixmatrix", GST_TYPE_MIXMATRIX,
|
|
||||||
&mixmatrix_details);
|
|
||||||
g_return_val_if_fail (factory != NULL, FALSE);
|
|
||||||
|
|
||||||
sinktempl = mixmatrix_sink_factory ();
|
sinktempl = mixmatrix_sink_factory ();
|
||||||
gst_element_factory_add_pad_template (factory, sinktempl);
|
|
||||||
|
|
||||||
srctempl = mixmatrix_src_factory ();
|
srctempl = mixmatrix_src_factory ();
|
||||||
gst_element_factory_add_pad_template (factory, srctempl);
|
|
||||||
|
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
return gst_element_register (plugin, "mixmatrix",
|
||||||
|
GST_RANK_NONE, GST_TYPE_MIXMATRIX);
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GstPluginDesc plugin_desc = {
|
GST_PLUGIN_DEFINE (
|
||||||
GST_VERSION_MAJOR,
|
GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
"mixmatrix",
|
"mixmatrix",
|
||||||
plugin_init
|
"An audio mixer matrix",
|
||||||
};
|
plugin_init,
|
||||||
|
VERSION,
|
||||||
|
GST_LICENSE,
|
||||||
|
GST_COPYRIGHT,
|
||||||
|
GST_PACKAGE,
|
||||||
|
GST_ORIGIN
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue