Commit 070f663a authored by Sebastian Dröge's avatar Sebastian Dröge 🍵 Committed by GStreamer Marge Bot
Browse files

aggregator: Don't automatically adjust segment if subclass provided one

On the first buffer the base class would update the segment position
based on the start-time-selection. If the subclass provides its own
segment this will caused unexpected behaviour and override segment
information that was explicitly set by the subclass.

Part-of: <!600>
parent e97c520f
Pipeline #194279 waiting for manual action with stages
in 1 minute and 34 seconds
......@@ -3611,6 +3611,9 @@ gst_aggregator_update_segment (GstAggregator * self, const GstSegment * segment)
GST_OBJECT_LOCK (self);
GST_AGGREGATOR_PAD (self->srcpad)->segment = *segment;
self->priv->send_segment = TRUE;
/* we have a segment from the subclass now and really shouldn't override
* anything in that segment anymore, like the segment.position */
self->priv->first_buffer = FALSE;
GST_OBJECT_UNLOCK (self);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment