Skip to content

get_next_time: calculate a correct next time before negotiation

Negotiation is triggered by aggregate, so in order to correctly time out when one of our initial sink pads does not chain data in immediately we still need to calculate a start time in order to start aggregating.

We use the state in get_next_time() to scale the number of frames by the output framerate, but in the case where the state has not been negotiated yet we can safely assume no frames were output either, and all we need is the start_time.

Merge request reports