mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-11 02:46:33 +00:00
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:
parent
45f3f3d772
commit
a5dab4b378
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue