mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
composition: reset base time to 0 when needed.
This commit is contained in:
parent
5c1b2133a5
commit
847360368a
1 changed files with 2 additions and 0 deletions
|
@ -496,6 +496,7 @@ _initialize_stack_func (GnlComposition * comp)
|
|||
{
|
||||
GnlCompositionPrivate *priv = comp->priv;
|
||||
|
||||
comp->priv->next_base_time = 0;
|
||||
/* set ghostpad target */
|
||||
if (!(update_pipeline (comp, COMP_REAL_START (comp),
|
||||
COMP_UPDATE_STACK_INITIALIZE))) {
|
||||
|
@ -1992,6 +1993,7 @@ _commit_func (GnlComposition * comp)
|
|||
GstClockTime curpos;
|
||||
GnlCompositionPrivate *priv = comp->priv;
|
||||
|
||||
priv->next_base_time = 0;
|
||||
GST_INFO_OBJECT (comp, "Commiting state");
|
||||
|
||||
/* Get current so that it represent the duration it was
|
||||
|
|
Loading…
Reference in a new issue