if (action->main_structure)
gst_structure_free (action->main_structure);
- g_slice_free1 (_find_action_type (action->type)->action_struct_size, action);
+ g_slice_free (GstValidateAction, action);
}
static void
gst_validate_action_new (GstValidateScenario * scenario,
GstValidateActionType * action_type)
{
- GstValidateAction *action = g_slice_alloc0 (action_type->action_struct_size);
+ GstValidateAction *action = g_slice_new0 (GstValidateAction);
gst_validate_action_init (action);
action->playback_time = GST_CLOCK_TIME_NONE;
type->description = g_strdup (description);
type->flags = flags;
- type->action_struct_size = sizeof (GstValidateActionType);
type->rank = rank;
if ((tmptype = _find_action_type (type_name))) {
return type;
}
-void
-gst_validate_action_type_set_action_struct_size (GstValidateActionType * type,
- gsize action_struct_size)
-{
- g_return_if_fail (action_struct_size >= sizeof (GstValidateAction));
-
- type->action_struct_size = sizeof (GstValidateActionType);
-}
-
GstValidateActionType *
gst_validate_get_action_type (const gchar * type_name)
{
gchar *description;
GstValidateActionTypeFlags flags;
- gsize action_struct_size;
GstRank rank;
/*< private >*/
- gpointer _gst_reserved[GST_PADDING_LARGE - sizeof(gsize) - sizeof (GstRank)];
+ gpointer _gst_reserved[GST_PADDING_LARGE - sizeof (GstRank)];
};
#define GST_TYPE_VALIDATE_ACTION_TYPE (gst_validate_action_type_get_type ())
GstValidateActionTypeFlags flags);
-void
-gst_validate_action_type_set_action_struct_size (GstValidateActionType *type,
- gsize action_struct_size);
-
gboolean gst_validate_action_get_clocktime (GstValidateScenario * scenario,
GstValidateAction *action,
const gchar * name,