videodecoder: Fix min-force-key-unit-interval logic and logging
authorHavard Graff <havard@pexip.com>
Fri, 10 Sep 2021 14:12:51 +0000 (16:12 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 16 Sep 2021 14:00:14 +0000 (17:00 +0300)
commite0811f890f402b48cd5a7d901caa7f38d50848bf
tree91ae3ec51bfc8d7b96d530dd7dba62ccb5095aee
parentfd93c1ac197fc98ed896afab7414b91b383039d2
videodecoder: Fix min-force-key-unit-interval logic and logging

The new keyframe is needed when the deadline of the buffer has exeeded
the waiting time, not while it is within it.

Also, since we look at the deadline of the frame, log that instead of PTS.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1278>
gst-libs/gst/video/gstvideodecoder.c