"Besides property-name and value, either 'target-element-name' or\n"
"'target-element-klass' needs to be defined",
GST_VALIDATE_ACTION_TYPE_CAN_EXECUTE_ON_ADDITION |
- GST_VALIDATE_ACTION_TYPE_CAN_BE_OPTIONAL);
+ GST_VALIDATE_ACTION_TYPE_CAN_BE_OPTIONAL |
+ GST_VALIDATE_ACTION_TYPE_HANDLED_IN_CONFIG);
REGISTER_ACTION_TYPE ("set-debug-threshold",
_execute_set_debug_threshold,
continue;
}
+
+ if (atype->flags & GST_VALIDATE_ACTION_TYPE_HANDLED_IN_CONFIG) {
+ GST_INFO ("Action type %s from configuration files"
+ " is handled.", action_typename);
+ continue;
+ }
+
if (!(atype->flags & GST_VALIDATE_ACTION_TYPE_CONFIG) &&
!(_action_type_has_parameter (atype, "as-config"))) {
g_error ("[CONFIG ERROR] Action '%s' is not a config action",
* @GST_VALIDATE_ACTION_TYPE_CAN_BE_OPTIONAL: The action can use the 'optional' keyword. Such action
* instances will have the #GST_VALIDATE_ACTION_TYPE_NO_EXECUTION_NOT_FATAL
* flag set and won't be considered as fatal if they fail.
+ * @GST_VALIDATE_ACTION_TYPE_HANDLED_IN_CONFIG: The action can be used in config files even if it is not strictly a config
+ * action (ie. it needs a scenario to run).
*/
typedef enum
{
GST_VALIDATE_ACTION_TYPE_NO_EXECUTION_NOT_FATAL = 1 << 6,
GST_VALIDATE_ACTION_TYPE_CAN_BE_OPTIONAL = 1 << 7,
GST_VALIDATE_ACTION_TYPE_DOESNT_NEED_PIPELINE = 1 << 8,
+ GST_VALIDATE_ACTION_TYPE_HANDLED_IN_CONFIG = 1 << 9,
} GstValidateActionTypeFlags;
/**