validate:scenario: We do not own any ref in GstValidateExecuteAction

And gst_validate_action_set_done might very well unref the last
reference to the action
This commit is contained in:
Thibault Saunier 2015-02-10 13:39:43 +01:00
parent 45f3f3d772
commit a5dab4b378

View file

@ -1123,13 +1123,13 @@ get_position (GstValidateScenario * scenario)
static gboolean static gboolean
stop_waiting (GstValidateAction * action) stop_waiting (GstValidateAction * action)
{ {
GstValidateScenarioPrivate *priv = action->scenario->priv; GstValidateScenario *scenario = action->scenario;
gst_validate_printf (action->scenario, "Stop waiting\n"); gst_validate_printf (action->scenario, "Stop waiting\n");
priv->wait_id = 0; scenario->priv->wait_id = 0;
gst_validate_action_set_done (action); gst_validate_action_set_done (action);
_add_get_position_source (action->scenario); _add_get_position_source (scenario);
return G_SOURCE_REMOVE; return G_SOURCE_REMOVE;