mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
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/5687>
This commit is contained in:
parent
c1c6d017c1
commit
150adf6df4
1 changed files with 0 additions and 1 deletions
|
@ -1658,7 +1658,6 @@ gst_video_rate_transform_ip (GstBaseTransform * trans, GstBuffer * buffer)
|
|||
" after receiving caps");
|
||||
gst_video_rate_swap_prev (videorate, NULL, GST_CLOCK_TIME_NONE);
|
||||
gst_clear_caps (&videorate->prev_caps);
|
||||
videorate->last_ts = GST_CLOCK_TIME_NONE;
|
||||
videorate->average = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue