mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
aggregator: Make pad eos as soon as all buffers are processed, dont way for events
https://bugzilla.gnome.org/show_bug.cgi?id=781673
This commit is contained in:
parent
6e96bebd5b
commit
a6710944e8
1 changed files with 3 additions and 3 deletions
|
@ -747,7 +747,7 @@ check_events (GstAggregator * self, GstAggregatorPad * pad, gpointer user_data)
|
|||
event = NULL;
|
||||
|
||||
PAD_LOCK (pad);
|
||||
if (gst_aggregator_pad_queue_is_empty (pad) && pad->priv->pending_eos) {
|
||||
if (pad->priv->num_buffers == 0 && pad->priv->pending_eos) {
|
||||
pad->priv->pending_eos = FALSE;
|
||||
pad->priv->eos = TRUE;
|
||||
}
|
||||
|
@ -1121,7 +1121,7 @@ gst_aggregator_default_sink_event (GstAggregator * self,
|
|||
*/
|
||||
SRC_LOCK (self);
|
||||
PAD_LOCK (aggpad);
|
||||
if (gst_aggregator_pad_queue_is_empty (aggpad)) {
|
||||
if (aggpad->priv->num_buffers == 0) {
|
||||
aggpad->priv->eos = TRUE;
|
||||
} else {
|
||||
aggpad->priv->pending_eos = TRUE;
|
||||
|
@ -2498,7 +2498,7 @@ gst_aggregator_pad_steal_buffer (GstAggregatorPad * pad)
|
|||
apply_buffer (pad, buffer, FALSE);
|
||||
pad->priv->num_buffers--;
|
||||
GST_TRACE_OBJECT (pad, "Consuming buffer");
|
||||
if (gst_aggregator_pad_queue_is_empty (pad) && pad->priv->pending_eos) {
|
||||
if (pad->priv->num_buffers == 0 && pad->priv->pending_eos) {
|
||||
pad->priv->pending_eos = FALSE;
|
||||
pad->priv->eos = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue