mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
gst: Add an example to GST_STATIC_PAD_TEMPLATE macro
This commit is contained in:
parent
a7456eec0d
commit
580f94ee97
1 changed files with 7 additions and 1 deletions
|
@ -178,8 +178,14 @@ struct _GstStaticPadTemplate {
|
|||
* @pres: the GstPadPresence of the pad
|
||||
* @caps: the GstStaticCaps of the pad
|
||||
*
|
||||
* Convenience macro to fill the values of a GstStaticPadTemplate
|
||||
* Convenience macro to fill the values of a #GstStaticPadTemplate
|
||||
* structure.
|
||||
* Example:
|
||||
* |[<!-- language="C" -->
|
||||
* static GstStaticPadTemplate my_src_template = \
|
||||
* GST_STATIC_PAD_TEMPLATE("src", GST_PAD_SRC, GST_PAD_ALWAYS,
|
||||
* GST_STATIC_CAPS_ANY);
|
||||
* ]|
|
||||
*/
|
||||
#define GST_STATIC_PAD_TEMPLATE(padname, dir, pres, caps) \
|
||||
{ \
|
||||
|
|
Loading…
Reference in a new issue