From 580f94ee97d7b9cdfcf68405a42cfd54f1b0c7db Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 21 May 2018 11:16:29 +0200 Subject: [PATCH] gst: Add an example to GST_STATIC_PAD_TEMPLATE macro --- gst/gstpadtemplate.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gst/gstpadtemplate.h b/gst/gstpadtemplate.h index e3d0bc5..fb15c40 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) \ { \ -- 2.7.4