diff --git a/gst/gstpadtemplate.h b/gst/gstpadtemplate.h index e3d0bc507b..fb15c40520 100644 --- a/gst/gstpadtemplate.h +++ b/gst/gstpadtemplate.h @@ -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: + * |[ + * 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) \ { \