validate: Return the GstValidateAction on .ref()

This commit is contained in:
Thibault Saunier 2019-03-25 18:14:35 -03:00 committed by Thibault Saunier
parent abaa382847
commit c2c5c68573
2 changed files with 4 additions and 4 deletions

View file

@ -346,10 +346,10 @@ gst_validate_action_init (GstValidateAction * action)
g_weak_ref_init (&action->priv->scenario, NULL);
}
void
GstValidateAction *
gst_validate_action_ref (GstValidateAction * action)
{
gst_mini_object_ref (GST_MINI_OBJECT (action));
return (GstValidateAction *) gst_mini_object_ref (GST_MINI_OBJECT (action));
}
void

View file

@ -126,9 +126,9 @@ GstValidateAction * gst_validate_action_new (GstValidateScenario * sc
GstStructure *structure,
gboolean add_to_lists);
GST_VALIDATE_API
void gst_validate_action_ref (GstValidateAction * action);
GstValidateAction* gst_validate_action_ref (GstValidateAction * action);
GST_VALIDATE_API
void gst_validate_action_unref (GstValidateAction * action);
void gst_validate_action_unref (GstValidateAction * action);
#define GST_TYPE_VALIDATE_ACTION (gst_validate_action_get_type ())
#define GST_IS_VALIDATE_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VALIDATE_ACTION))