Skip to content

videodecoder: Fix unexpected SEGMENT event drop before sending GAP event

In case that decoder received multiple frames without output, priv->current_frame_events would not hold any event object but it's been moved to GstVideoCodecFrame object so that it can be sent when corresponding frame is decoded. So if no frame was outputted before the GAP event, the oldest frame is likely holding SEGMENT event. To ensure SEGMENT -> GAP event ordering, baseclass should check/push pending events on the oldest pending frame.

Edited by Seungha Yang

Merge request reports