validate: Do not check that timestamp are in input range for encoders

As some encoder offset the segment range to handle bframes, that check doesn't make sense.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9127>
This commit is contained in:
Thibault Saunier 2025-05-28 11:20:16 +02:00 committed by GStreamer Marge Bot
parent 07e6d5a881
commit ca36315dab

View File

@ -1198,6 +1198,11 @@ static void
GST_PAD (gst_validate_monitor_get_target (GST_VALIDATE_MONITOR
(monitor)));
if (PAD_PARENT_IS_ENCODER (monitor)) {
GST_DEBUG_OBJECT (pad, "Skipping timestamp in range check for encoder pad");
goto done;
}
if (!GST_CLOCK_TIME_IS_VALID (GST_BUFFER_TIMESTAMP (buffer))
|| !GST_CLOCK_TIME_IS_VALID (GST_BUFFER_DURATION (buffer))) {
GST_DEBUG_OBJECT (pad,