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/3819>
This commit is contained in:
Jan Alexander Steffens (heftig) 2023-01-26 10:33:26 +01:00 committed by GStreamer Marge Bot
parent 1a41344345
commit a562ab7c6f

View file

@ -3200,7 +3200,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;