Skip to content

videorate: Handle closing segment on EOS right after caps event

The scenario is what we try in the tests:

  • we have a segment with .stop set
  • some frame(s) flow
  • we get a CAPS event
  • we get an EOS (and as expected no buffer arrive after it)

in that case, without that patch, the segment is not properly closed which is not correct. In this patch we keep track of previous caps until a new buffer arrives, this way in that situation we set previous caps again, and close the segment with the previous buffer.

Fixes: #1352 (closed) in this specific case

Edited by Thibault Saunier

Merge request reports