mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
validate: Keep scenario alive enough when executing actions
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1810>
This commit is contained in:
parent
a9e3b05055
commit
c275b5c678
1 changed files with 7 additions and 3 deletions
|
@ -2169,11 +2169,15 @@ _add_execute_actions_gsource (GstValidateScenario * scenario)
|
||||||
&& priv->signal_handler_id == 0 && priv->wait_message_action == NULL) {
|
&& priv->signal_handler_id == 0 && priv->wait_message_action == NULL) {
|
||||||
if (!scenario->priv->action_execution_interval)
|
if (!scenario->priv->action_execution_interval)
|
||||||
priv->execute_actions_source_id =
|
priv->execute_actions_source_id =
|
||||||
g_idle_add ((GSourceFunc) execute_next_action, scenario);
|
g_idle_add_full (G_PRIORITY_DEFAULT_IDLE,
|
||||||
|
(GSourceFunc) execute_next_action,
|
||||||
|
gst_object_ref (GST_OBJECT_CAST (scenario)), gst_object_unref);
|
||||||
else
|
else
|
||||||
priv->execute_actions_source_id =
|
priv->execute_actions_source_id =
|
||||||
g_timeout_add (scenario->priv->action_execution_interval,
|
g_timeout_add_full (G_PRIORITY_DEFAULT,
|
||||||
(GSourceFunc) execute_next_action, scenario);
|
scenario->priv->action_execution_interval,
|
||||||
|
(GSourceFunc) execute_next_action,
|
||||||
|
gst_object_ref (GST_OBJECT_CAST (scenario)), gst_object_unref);
|
||||||
SCENARIO_UNLOCK (scenario);
|
SCENARIO_UNLOCK (scenario);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (scenario, "Start checking position again");
|
GST_DEBUG_OBJECT (scenario, "Start checking position again");
|
||||||
|
|
Loading…
Reference in a new issue