videorate: Only "close" the segment if it is discontinous
authorOlivier Crête <olivier.crete@collabora.com>
Fri, 24 Jul 2020 21:41:57 +0000 (17:41 -0400)
committerOlivier Crête <olivier.crete@ocrete.ca>
Wed, 15 Sep 2021 15:35:43 +0000 (15:35 +0000)
commit6f7922b4dbba5ed780e7b0988669a81848a9e333
tree64913f5038334bda303905234842faf5d1c21794
parenta76f38b2c7ddbed546bb058c32ebcf8a553c003f
videorate: Only "close" the segment if it is discontinous

Otherwise, it will drop valid buffers on a simple segment update

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/767>
gst/videorate/gstvideorate.c
tests/check/elements/videorate.c