mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
videoaggregator: push the caps event as soon as we receive it
Along with the required mandatory dependent events. Some elements need to perform an allocation query inside ::negotiated_caps(). Without the caps event being sent prior, downstream elements will be unable to answer and will return an error. https://bugzilla.gnome.org/show_bug.cgi?id=732662
This commit is contained in:
parent
5ef53b8a29
commit
42e2933133
1 changed files with 14 additions and 13 deletions
|
@ -277,19 +277,6 @@ _check_all_pads_with_data_or_eos (GstAggregator * self,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_aggregator_set_src_caps:
|
||||
* @self: The #GstAggregator
|
||||
* @caps: The #GstCaps to set later on the src pad.
|
||||
*
|
||||
* Sets the caps to be used on the src pad.
|
||||
*/
|
||||
void
|
||||
gst_aggregator_set_src_caps (GstAggregator * self, GstCaps * caps)
|
||||
{
|
||||
gst_caps_replace (&self->priv->srccaps, caps);
|
||||
}
|
||||
|
||||
static void
|
||||
_reset_flow_values (GstAggregator * self)
|
||||
{
|
||||
|
@ -350,6 +337,20 @@ _push_mandatory_events (GstAggregator * self)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_aggregator_set_src_caps:
|
||||
* @self: The #GstAggregator
|
||||
* @caps: The #GstCaps to set later on the src pad.
|
||||
*
|
||||
* Sets the caps to be used on the src pad.
|
||||
*/
|
||||
void
|
||||
gst_aggregator_set_src_caps (GstAggregator * self, GstCaps * caps)
|
||||
{
|
||||
gst_caps_replace (&self->priv->srccaps, caps);
|
||||
_push_mandatory_events (self);
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_aggregator_finish_buffer:
|
||||
* @self: The #GstAggregator
|
||||
|
|
Loading…
Reference in a new issue