aggregator: Reset the pad's first buffer flag with the rest
There is not reason to have separate code to reset this one. https://bugzilla.gnome.org/show_bug.cgi?id=781673
This commit is contained in:
parent
05374aa22c
commit
82f7b00ea3
@ -245,6 +245,7 @@ gst_aggregator_pad_reset_unlocked (GstAggregatorPad * aggpad)
|
|||||||
aggpad->priv->head_time = GST_CLOCK_TIME_NONE;
|
aggpad->priv->head_time = GST_CLOCK_TIME_NONE;
|
||||||
aggpad->priv->tail_time = GST_CLOCK_TIME_NONE;
|
aggpad->priv->tail_time = GST_CLOCK_TIME_NONE;
|
||||||
aggpad->priv->time_level = 0;
|
aggpad->priv->time_level = 0;
|
||||||
|
aggpad->priv->first_buffer = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@ -1096,8 +1097,6 @@ gst_aggregator_default_sink_event (GstAggregator * self,
|
|||||||
GST_OBJECT_UNLOCK (self);
|
GST_OBJECT_UNLOCK (self);
|
||||||
}
|
}
|
||||||
|
|
||||||
aggpad->priv->first_buffer = TRUE;
|
|
||||||
|
|
||||||
/* We never forward the event */
|
/* We never forward the event */
|
||||||
goto eat;
|
goto eat;
|
||||||
}
|
}
|
||||||
@ -2464,7 +2463,6 @@ gst_aggregator_pad_init (GstAggregatorPad * pad)
|
|||||||
g_mutex_init (&pad->priv->flush_lock);
|
g_mutex_init (&pad->priv->flush_lock);
|
||||||
g_mutex_init (&pad->priv->lock);
|
g_mutex_init (&pad->priv->lock);
|
||||||
|
|
||||||
pad->priv->first_buffer = TRUE;
|
|
||||||
gst_aggregator_pad_reset_unlocked (pad);
|
gst_aggregator_pad_reset_unlocked (pad);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user