aggregator: Warn about the right segment's format

We were checking the head segment here, not the current segment.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/611>
This commit is contained in:
Jan Alexander Steffens (heftig) 2023-01-26 10:33:26 +01:00
parent 08d4b0051a
commit e3fa65abab

View file

@ -3196,7 +3196,7 @@ gst_aggregator_pad_chain_internal (GstAggregator * self,
GST_WARNING_OBJECT (aggpad,
"Ignoring request of selecting the first start time "
"as the segment is a %s segment instead of a time segment",
gst_format_get_name (aggpad->segment.format));
gst_format_get_name (aggpad->priv->head_segment.format));
}
GST_OBJECT_UNLOCK (aggpad);
break;