cccombiner: Don't crash when first frame has no duration

Aggregate again so the code above can determine the end time or EOS.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9415>
This commit is contained in:
Jan Alexander Steffens (heftig) 2025-07-17 14:40:47 +02:00 committed by GStreamer Marge Bot
parent 1428a86783
commit 69ddd8c3c7

View File

@ -869,11 +869,13 @@ gst_cc_combiner_aggregate (GstAggregator * aggregator, gboolean timeout)
}
}
if (!GST_CLOCK_TIME_IS_VALID (self->current_video_running_time_end))
return GST_FLOW_OK;
/* At this point we have a video buffer queued and can start collecting
* caption buffers for it */
g_assert (self->current_video_buffer != NULL);
g_assert (GST_CLOCK_TIME_IS_VALID (self->current_video_running_time));
g_assert (GST_CLOCK_TIME_IS_VALID (self->current_video_running_time_end));
flow_ret = gst_cc_combiner_collect_captions (self, timeout);