videorate: Don't forget last_ts on caps changes
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 17 Nov 2023 15:48:21 +0000 (10:48 -0500)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 24 Nov 2023 01:31:51 +0000 (01:31 +0000)
commitb299760325d04f3c2ee1b1a9b22857fccfa00084
tree874743c76783d11e2284a4f5df5f4e27c43b392e
parent6e40624f20cba9713e38dc4e5ac603b1be0d3042
videorate: Don't forget last_ts on caps changes

Whenever that caps changes does not imply that a new segment will start.
Don't reset the last_ts if only the caps have changed. This fixes issues
if you have a stream without only first frame with TS=0, and have resolution
change happening. This was a regression introduced by !3059, which issue was
described in #1352. The reported issue is still fix after this change.

Fixes #1034

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5712>
subprojects/gst-plugins-base/gst/videorate/gstvideorate.c