summaryrefslogtreecommitdiff
path: root/gst/gstpad.h
diff options
context:
space:
mode:
authorEvan Nemerson <evan@coeus-group.com>2012-07-29 15:44:45 -0700
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-08-10 15:05:43 +0100
commit490d16b88ac78701be460fa3d7a9aac15c77014b (patch)
tree656cee286949636380889e4821ae1e486193eaef /gst/gstpad.h
parentf1690812908cfab17aeec1b78a433a35e2d42054 (diff)
pad: add GST_PAD_LINK_CHECK_DEFAULT to GstPadLinkCheck
This allows introspection-based bindings to access Gst.PadLinkCheck.DEFAULT instead of Gst.PAD_LINK_CHECK_DEFAULT. https://bugzilla.gnome.org/show_bug.cgi?id=678301
Diffstat (limited to 'gst/gstpad.h')
-rw-r--r--gst/gstpad.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/gst/gstpad.h b/gst/gstpad.h
index 9bf812a41..105c479d9 100644
--- a/gst/gstpad.h
+++ b/gst/gstpad.h
@@ -192,6 +192,8 @@ GQuark gst_flow_to_quark (GstFlowReturn ret);
* would be unsafe e.g. if one pad has %GST_CAPS_ANY.
* @GST_PAD_LINK_CHECK_CAPS: Check if the pads are compatible by comparing the
* caps returned by gst_pad_query_caps().
+ * @GST_PAD_LINK_CHECK_DEFAULT: The default checks done when linking
+ * pads (i.e. the ones used by gst_pad_link()).
*
* The amount of checking to be done when linking pads. @GST_PAD_LINK_CHECK_CAPS
* and @GST_PAD_LINK_CHECK_TEMPLATE_CAPS are mutually exclusive. If both are
@@ -209,16 +211,10 @@ typedef enum {
GST_PAD_LINK_CHECK_NOTHING = 0,
GST_PAD_LINK_CHECK_HIERARCHY = 1 << 0,
GST_PAD_LINK_CHECK_TEMPLATE_CAPS = 1 << 1,
- GST_PAD_LINK_CHECK_CAPS = 1 << 2
-} GstPadLinkCheck;
+ GST_PAD_LINK_CHECK_CAPS = 1 << 2,
-/**
- * GST_PAD_LINK_CHECK_DEFAULT:
- *
- * The default checks done when linking pads (i.e. the ones used by
- * gst_pad_link()).
- */
-#define GST_PAD_LINK_CHECK_DEFAULT ((GstPadLinkCheck) (GST_PAD_LINK_CHECK_HIERARCHY | GST_PAD_LINK_CHECK_CAPS))
+ GST_PAD_LINK_CHECK_DEFAULT = GST_PAD_LINK_CHECK_HIERARCHY | GST_PAD_LINK_CHECK_CAPS
+} GstPadLinkCheck;
/* pad states */
/**