#define GST_PARAM_DOC_SHOW_DEFAULT (1 << (G_PARAM_USER_SHIFT + 5))
/**
+ * GST_PARAM_CONDITIONALLY_AVAILABLE: (value 16384)
+ *
+ * Use this flag on GObject properties of GstObject to indicate that
+ * they might not be available depending on environment such as OS, device, etc,
+ * so such properties will be installed conditionally only if the GstObject is
+ * able to support it.
+ */
+#define GST_PARAM_CONDITIONALLY_AVAILABLE (1 << (G_PARAM_USER_SHIFT + 6))
+
+/**
* GST_PARAM_USER_SHIFT: (value 65536)
*
* Bits based on GST_PARAM_USER_SHIFT can be used by 3rd party applications.
G_PARAM_LAX_VALIDATION | G_PARAM_STATIC_STRINGS | \
G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_DEPRECATED | \
GST_PARAM_CONTROLLABLE | GST_PARAM_MUTABLE_PLAYING | \
- GST_PARAM_MUTABLE_PAUSED | GST_PARAM_MUTABLE_READY)
+ GST_PARAM_MUTABLE_PAUSED | GST_PARAM_MUTABLE_READY | \
+ GST_PARAM_CONDITIONALLY_AVAILABLE)
static int
sort_gparamspecs (GParamSpec ** a, GParamSpec ** b)
RESET_COLOR);
first_flag = FALSE;
}
+ if (param->flags & GST_PARAM_CONDITIONALLY_AVAILABLE) {
+ g_print (", %s%s%s", PROP_ATTR_VALUE_COLOR, _("conditionally available"),
+ RESET_COLOR);
+ first_flag = FALSE;
+ }
if (param->flags & GST_PARAM_MUTABLE_PLAYING) {
g_print (", %s%s%s", PROP_ATTR_VALUE_COLOR,
_("changeable in NULL, READY, PAUSED or PLAYING state"), RESET_COLOR);