mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
Fixed the padtemplate definition.
Original commit message from CVS: Fixed the padtemplate definition.
This commit is contained in:
parent
a4b8bc9133
commit
5f61efc9ce
2 changed files with 50 additions and 66 deletions
|
@ -57,41 +57,33 @@ enum {
|
||||||
* can have. They can be quite complex, but for this example plugin
|
* can have. They can be quite complex, but for this example plugin
|
||||||
* they are rather simple.
|
* they are rather simple.
|
||||||
*/
|
*/
|
||||||
static GstPadTemplate*
|
GST_PADTEMPLATE_FACTORY (sink_factory,
|
||||||
sink_factory (void)
|
"sink", /* The name of the pad */
|
||||||
{
|
GST_PAD_SINK, /* Direction of the pad */
|
||||||
return
|
GST_PAD_ALWAYS, /* The pad exists for every instance */
|
||||||
gst_padtemplate_new (
|
GST_CAPS_NEW (
|
||||||
"sink", /* The name of the pad */
|
"example_sink", /* The name of the caps */
|
||||||
GST_PAD_SINK, /* Direction of the pad */
|
"unknown/unknown", /* The overall MIME/type */
|
||||||
GST_PAD_ALWAYS, /* The pad exists for every instance */
|
"foo", GST_PROPS_INT (1), /* An integer property */
|
||||||
gst_caps_new (
|
"bar", GST_PROPS_BOOLEAN (TRUE), /* A boolean */
|
||||||
"example_sink", /* The name of the caps */
|
"baz", GST_PROPS_LIST ( /* A list of values for */
|
||||||
"unknown/unknown", /* The overall MIME/type */
|
GST_PROPS_INT (1),
|
||||||
gst_props_new (
|
GST_PROPS_INT (3)
|
||||||
"foo", GST_PROPS_INT (1), /* An integer property */
|
)
|
||||||
"bar", GST_PROPS_BOOLEAN (TRUE), /* A boolean */
|
)
|
||||||
"baz", GST_PROPS_LIST ( /* A list of values for */
|
);
|
||||||
GST_PROPS_INT (1),
|
|
||||||
GST_PROPS_INT (3)
|
|
||||||
),
|
|
||||||
NULL)));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This factory is much simpler, and defines the source pad. */
|
/* This factory is much simpler, and defines the source pad. */
|
||||||
static GstPadTemplate*
|
GST_PADTEMPLATE_FACTORY (src_factory,
|
||||||
src_factory (void)
|
"src",
|
||||||
{
|
GST_PAD_SRC,
|
||||||
return
|
GST_PAD_ALWAYS,
|
||||||
gst_padtemplate_new (
|
GST_CAPS_NEW (
|
||||||
"src",
|
"example_src",
|
||||||
GST_PAD_SRC,
|
"unknown/unknown",
|
||||||
GST_PAD_ALWAYS,
|
NULL
|
||||||
gst_caps_new (
|
)
|
||||||
"example_src",
|
);
|
||||||
"unknown/unknown",
|
|
||||||
NULL));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* A number of functon prototypes are given so we can refer to them later. */
|
/* A number of functon prototypes are given so we can refer to them later. */
|
||||||
|
|
|
@ -57,41 +57,33 @@ enum {
|
||||||
* can have. They can be quite complex, but for this example plugin
|
* can have. They can be quite complex, but for this example plugin
|
||||||
* they are rather simple.
|
* they are rather simple.
|
||||||
*/
|
*/
|
||||||
static GstPadTemplate*
|
GST_PADTEMPLATE_FACTORY (sink_factory,
|
||||||
sink_factory (void)
|
"sink", /* The name of the pad */
|
||||||
{
|
GST_PAD_SINK, /* Direction of the pad */
|
||||||
return
|
GST_PAD_ALWAYS, /* The pad exists for every instance */
|
||||||
gst_padtemplate_new (
|
GST_CAPS_NEW (
|
||||||
"sink", /* The name of the pad */
|
"example_sink", /* The name of the caps */
|
||||||
GST_PAD_SINK, /* Direction of the pad */
|
"unknown/unknown", /* The overall MIME/type */
|
||||||
GST_PAD_ALWAYS, /* The pad exists for every instance */
|
"foo", GST_PROPS_INT (1), /* An integer property */
|
||||||
gst_caps_new (
|
"bar", GST_PROPS_BOOLEAN (TRUE), /* A boolean */
|
||||||
"example_sink", /* The name of the caps */
|
"baz", GST_PROPS_LIST ( /* A list of values for */
|
||||||
"unknown/unknown", /* The overall MIME/type */
|
GST_PROPS_INT (1),
|
||||||
gst_props_new (
|
GST_PROPS_INT (3)
|
||||||
"foo", GST_PROPS_INT (1), /* An integer property */
|
)
|
||||||
"bar", GST_PROPS_BOOLEAN (TRUE), /* A boolean */
|
)
|
||||||
"baz", GST_PROPS_LIST ( /* A list of values for */
|
);
|
||||||
GST_PROPS_INT (1),
|
|
||||||
GST_PROPS_INT (3)
|
|
||||||
),
|
|
||||||
NULL)));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This factory is much simpler, and defines the source pad. */
|
/* This factory is much simpler, and defines the source pad. */
|
||||||
static GstPadTemplate*
|
GST_PADTEMPLATE_FACTORY (src_factory,
|
||||||
src_factory (void)
|
"src",
|
||||||
{
|
GST_PAD_SRC,
|
||||||
return
|
GST_PAD_ALWAYS,
|
||||||
gst_padtemplate_new (
|
GST_CAPS_NEW (
|
||||||
"src",
|
"example_src",
|
||||||
GST_PAD_SRC,
|
"unknown/unknown",
|
||||||
GST_PAD_ALWAYS,
|
NULL
|
||||||
gst_caps_new (
|
)
|
||||||
"example_src",
|
);
|
||||||
"unknown/unknown",
|
|
||||||
NULL));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* A number of functon prototypes are given so we can refer to them later. */
|
/* A number of functon prototypes are given so we can refer to them later. */
|
||||||
|
|
Loading…
Reference in a new issue