mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +00:00
composition: Release OBJECTS_LOCK when emiting the "commited"
Co-Authored by: Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>
This commit is contained in:
parent
913798ea3d
commit
9759f801e5
1 changed files with 6 additions and 1 deletions
|
@ -2242,6 +2242,7 @@ _commit_func (GnlComposition * comp)
|
||||||
GST_DEBUG_OBJECT (comp, "Not initialized yet, just updating values");
|
GST_DEBUG_OBJECT (comp, "Not initialized yet, just updating values");
|
||||||
|
|
||||||
update_start_stop_duration (comp);
|
update_start_stop_duration (comp);
|
||||||
|
COMP_OBJECTS_UNLOCK (comp);
|
||||||
|
|
||||||
g_signal_emit (comp, _signals[COMMITED_SIGNAL], 0, TRUE);
|
g_signal_emit (comp, _signals[COMMITED_SIGNAL], 0, TRUE);
|
||||||
|
|
||||||
|
@ -2252,12 +2253,16 @@ _commit_func (GnlComposition * comp)
|
||||||
update_pipeline (comp, curpos, TRUE, TRUE);
|
update_pipeline (comp, curpos, TRUE, TRUE);
|
||||||
|
|
||||||
if (!priv->current) {
|
if (!priv->current) {
|
||||||
|
COMP_OBJECTS_UNLOCK (comp);
|
||||||
|
|
||||||
GST_INFO_OBJECT (comp, "No new stack set, we can go and keep acting on"
|
GST_INFO_OBJECT (comp, "No new stack set, we can go and keep acting on"
|
||||||
" our children");
|
" our children");
|
||||||
|
|
||||||
g_signal_emit (comp, _signals[COMMITED_SIGNAL], 0, TRUE);
|
g_signal_emit (comp, _signals[COMMITED_SIGNAL], 0, TRUE);
|
||||||
|
} else {
|
||||||
|
COMP_OBJECTS_UNLOCK (comp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
COMP_OBJECTS_UNLOCK (comp);
|
|
||||||
|
|
||||||
return G_SOURCE_REMOVE;
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue